I had tried this, it doesn’t work
<?php
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listings' => [
'columns' => 3,
],
],
]
);
}
);
ihor
March 11, 2023, 6:58pm
2
The snippet seems to be ok, please make sure that you added it as a PHP, not CSS snippet (e.g. via the Code Snippets plugin).
Yes I added it as a PHP. but I think it doesn’t work because my url is like this:
https://jomedit.com/?post_type=hp_listing&s=&_category=
instead of listing page…
ihor
March 19, 2023, 11:34pm
4
It should still work there, the template is the same (listings_view_page). Please make sure that the snippet is added correctly and the website front-end is not cached (you can try disabling third-party plugins).
system
Closed
April 18, 2023, 11:34pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.