Cheyko
Sophomore
Just Getting Started
Member Likes (0)
Hello again. I would like users to be able to use the global site search to also search for prospress auctions, however post indexer doesn't seem to index these posts. Any way to make it to where it can?
Thanks,
~Chey
Responses (5)
People Person (joined February 2012) Likes (0)
Chey,
Hi and Welcome to WPMUdev forums!
Do your custom posts types have the Main Editor included?
Basically, Post-Indexer will not index posts that have an empty $post->post_content. The Post-Indexer plugin has a list of rules, one of which tests for $post->post_content and deters the indexing if it is empty.
Possible Solutions:
1- Remove this rule from the plugin code. While it works it is obviously the less desirable choice as it could have negative residual effects. It would also be update-unfriendly, which can be very dangerous if the theme depends highly on this plugin.
2- Add a hidden field into the Edit/Add screen for each custom post type named "content" and populate it to fulfill the plugins test. This is a more desirable solution as it will keep the installation more stable, while allowing you to take advantage of all plugin features going forward.
Please let me know if this helps :)
Best,
Kimberly
If the above action did not result in the resolution or common end to this ticket then please feel free to come back here for comment. Just be sure you mark "Not Resolved" to re-open or we might miss it! :) Thanks!
Member (joined April 2012) Likes (0)
Hmmm... I'm sorry, I have no idea how to do that XD. The custom post type (auctions) was created beforehand by Prospress and I have no idea how to edit any of that, and I don't know how to remove the rule for post indexer either.
I'm sorry.
Member (joined April 2012) Likes (0)
Sorry, didn't mark as 'not resolved' in the last reply.
People Person (joined February 2012) Likes (0)
The second option, which is the more desirable, would require you to:
Install CustomPress (or use a custom field generator if you have one you already use) and create a field for use in that post type called "content". You can set it to have a default value of anything "smile" "yes" "default" whatever you like.
Don't worry about embedding it in the code, just make sure it shows up on the Add/Edit screen for your post type and make sure there is something in it. :)
Does this help?
Support Kangaroo (joined March 2011) Likes (0)
Greetings,
Unfortunately Cheyko is no longer a WPMU Dev Member!
Marking ticket as resolved.
Cheers, Joe
WordPress Questions?
We've got answers!
Find out more »