Issue with Essential Grid query results

We have a client site that has an issue with Essential Grid. They created a new grid to show projects (CPT) with a given category, and while it shows those projects fine, it is also showing press releases (taxonomy for a different CPT, called resources) with that category name in the title (it doesn’t even have that category attached to it). The source is set as Projects with that category, using the AND logic.

Also, the way it’s pulling in those press releases is not the normal URL for those releases. Normally it is:
domain.com/resource/title-of-press-release
But the links in the grid show as:
domain.com/?press-release=title-of-press-release

Any thoughts? More detail in the note. Thanks!

Hello @launchcatapult,

Thanks for writing in! I have investigated the issue and this is not an issue with the Essential grid plugin. How did you created the Press Release and White Papers custom post types? It seems that you have forgotten to set the permalinks of these custom post types.

If you are using a 3rd party plugin in creating these custom post types, it is best that you contact the creators of the plugin. If you have personally coded these types, please double-check your code and make sure that you have registered the custom post type properly.

Best Regards.

That makes sense. However, why is Essential Grid displaying those items despite them not being Projects? I experimented with explicitly defining the permalink for press releases, but all that did was change the link in the grid item – the item itself was still there, but shouldn’t be.

Hey @launchcatapult,

The Essential Grid is displaying the correct items. Remember you have set this setting:

You want to load the Projects custom post type and selected the WTS tags. The Press Release custom types were included because you are using “OR” relation and since there are Press Releases that has the WTS tag, it is included in the grid.

To get rid of the Press Release custom post type, you must select the “AND” relation.

Best Regards.

I have changed the category relation to “AND”, but the press releases are still showing up. The other grid in question has been set to “AND” the whole time as well.

Hey @launchcatapult,

It is weird because even if the “Project” is selected as the post type, the “Press Release” is included in the grid. It could be because they share the same WTS tag. To get around this, we have to add additional parameters to exclude posts from specific categories.

In the screenshot above, the categories of the Press Release were used so that those posts that belong to the category will no longer be displayed in the grid.

Check your page now.

Aha! Yep, that takes care of it. I had tried adding additional parameters, but not in that way (didn’t have the ampersand). That should cover things until the post type issue gets squared away. Thanks so much for your help!

I am glad that I could be of assistance.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.