Blocks Filter by Post ID

Posted in: Newspaper
Post count: 31

Code:

<?php
$theShortcode = '[vc_row][vc_column][td_block_15 custom_title="Related Articles" td_ajax_filter_type="td_category_ids_filter" ajax_pagination="next_prev"][/vc_column][/vc_row]';
echo do_shortcode($theShortcode);
?>

This works fine (apart from an issue with the category box dropping a few pixels which I have raised in another post). However there’s no option to filter based on post ID like you can with the Post Grid/Post Masonry Grid options. Is there a simple enough way to achieve this here?

I’d love to use Post Grid/Post Masonry Grid in the above example but unfortunately as per the plugin authors reasoning:

Currently it is not possible because Grid requires special hashkey which is stored in meta data of the each post. Each hashkey is unique and related to information in meta about grid attributes. The reason of such implementation is security. Because vc getting data grid from ajax request and data passed to this request is ID.

Post count: 31

https://forum.tagdiv.com/topic/diy-show-only-specific-posts-on-block-and-sliders-filter-blocks-by-post-id/

This looks exactly like I want! Any chance it will be featured as part of the core theme soon?

Post count: 7909

Hi,

We will consider this for future, but I cannot provide a date, sorry!

Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.