I am working with Custom Content Types Manager and Relevanssi.
In CCTM I have a custom field that links to other posts and, if I enter as keyword part of one of those posts’ name, I need to see also the posts linked to it.
This shouldn’t be hard but I noticed that the “external” posts are stored by ID and not by their names.
I tweakked the search.php page in order to get the ID of the external post but I’m struggling to add this parameter to the search keywords.
I tried to create a new WP_Query object but it seems that Relevanssi blocks the “s” variable of the query.
How can I manually add the ID of eventual external posts to grab all the posts?
- The topic ‘Alter the query string.’ is closed to new replies.