I see that my Newspaper license does not grant me support for VC from WP Bakery, so hopefully you folks can help.
I have a site with a large number of downloads (intranet). I’ve been trying a few “download manager” plugins (Download Monitor, WPDownload Manager). These plugins basically make a custom post type for their content. I can get something close to what I want as shown here:

My VC question is this. The block settings allow me to filter by category ID, slug, etc. and also allow to select a custom post type as shown below:

So what’s the proper way to filter on category when using a custom post type. A very VC-centric question, but seeing as I’m not allowed to ask without a real VC license, I’m asking here. Developers of both download plugins are willing to help to some extent, but obviously they can’t do much without knowing how this VC filtering system works.
Help! Last step in getting this site live. Downloads are THE centerpiece of this site.
Hi,
The settings you ask about actually come from the theme and not visual composer as content blocks are created by us so you do not need visual composer support, but theme support :).
Unfortunately the block settings will not filter custom post types with custom taxonomies. The content blocks were created with the standard post type and taxonomy in mind.
I ran a few tests with WPDownload Manager. You can filter the post types themselves and select the ones you want to display inside a block by the post id: http://screencast.com/t/82g7yT4Su, but unfortunately you cannot use the category filter as it will not accept the custom taxonomy. You can filter the post type manually though on each block.
Hope this helps.
Thanks
Bummer.
Can you point me to where the filtering is setup for the block? I’m going to have to hack in support for this. A static list of posts is no good, content is updated regularly.
I’d be open to making a new block and having it load an alternate class that has been modified to filter on the custom taxonomy. Can you point me to files involved in creating this block for VC and where the query is defined?
Thanks!
Hi,
The files you require need to modify:
A standard module file from includes->modules is an extended class of td_module: http://screencast.com/t/DtjyDD2bGW
td_module can be found here: http://screencast.com/t/CeNovmqiY This is the file where you will find the get_category function. You can add a whole new function here. The wordpress codex helps a lot in this case.
Hope this helps.
Thank you!