Filtering with data-attributes question
-
Trying to wrap my head around the filters with custom WP-queries that get passed onto the shortcode https://connekthq.com/plugins/ajax-load-more/examples/filtering/
My shortcode looks like this
[ajax_load_more repeater="default" posts_per_page="12" container_type="div" post__in="'. implode(',', $postidsfromquery->posts) .'" orderby="post__in" button_label="Load More "]
However data-attributes don’t work with the post__in=”‘. implode(‘,’, $price2->posts) .'” part since it has double slash,
I’m i going about this the wrong way and is there a better way to achieve this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Filtering with data-attributes question’ is closed to new replies.