Title behaviour
-
Hello.
I’m using this plugin with acadp_listings (a custom post type).
I noticed that if the content of the custom post is empty, then the related post will display the article, otherwise the item will not be displayed. Can you help me?
Thank youThe page I need help with: [log in to see the link]
-
How exactly does this listing work in terms of the custom post type. Is it the normal title and content as any other post?
Can you also disable “Find related posts on content as well as title”.
Thank you for quick reply, below more details:
- “Find related posts on content as well as title” is unchecked (please see config page attached)
- Plugin installed for listings: “Advanced Classifieds and Directory Pro“
- Recreate Index: Done
- I am working only with “acadp_listings”, treated as “custom post type”
- Each custom post title have a title (required), content could be text and/or image or nothing
- Clear cache browser: done
- This issue happens also with all plugins disabled
Listing with content text can’t displays related post title (see here)
Listing with image content displays related post with title (see here)
Listing with empty content displays related post with title (see here)Thanks. All the settings look like what should be done.
You might need to do a bit of debugging in terms of what query gets created. Can you install Query Monitor. You can then use that to find the query for Contextual Related Posts by finding this from all the queries that the plugin will report. You can access this from the toolbar at the top of your site.
Hello,
I tried to install Query Monitor, but I did not find any useful clue to fix the problem.Can you post the query that is generated by Query Monitor for my plugin? You can access the queries by clicking at the top of Query Monitor output and selecting Queries and then finding the one for Contextual Related Posts
Please download file and folder contents on your PC from
https://www.dropbox.com/sh/i0v5gcbo3pqk9r5/AACtSxJI_xwiddY4jAOog_V5a?dl=0
then, click on “Software Design Automazione Supermercati – WebDriver.html”, it’s a local file, it will open and you will see all page with Query Monitor.This the query being generated.
SELECT DISTINCT wp832_posts.ID FROM wp832_posts WHERE 1=1 AND MATCH (post_title,post_content) AGAINST ('Software Design Automazione Supermercati Software Design elabora soluzioni informatiche per l\'automazione supermercati. E\' il risultato della consolidata esperienza nel settore, supportata da applicazioni software prodotte internamente e quindi sempre adattabili alle esigenze del cliente, e completata dalla fornitura di sistemi hardware delle più prestigiose aziende presenti sul mercato. Automazione e controllo dei processi Tecnologie per la gestione dei punti vendita Archiviazione e gestione elettronica dei documenti Conservazione sostitutiva dei documenti Innovazione tecnologica') AND wp832_posts.post_date < '2017-09-28 09:08:35' AND wp832_posts.post_date >= '2014-09-29 09:08:35' AND wp832_posts.post_status = 'publish' AND wp832_posts.ID != 206 AND wp832_posts.post_type IN ('acadp_listings') LIMIT 0, 4That means it is trying to find the same post type (last line) and within a 3 year period. But it’s also matching both the post title and post content (4th line).
Can you double check that “Find related posts on content as well as title” is disabled please? Alternatively, check it and see what happens?
I tried to enable and disable “Find related posts on content as well as title”, nothing has changed. Unfortunately, I can not spend much time on that problem.
If you have time to investigate, I can make a copy of my website with few records, send you privately, so you can run the tests yourself.I won’t be a position to test it directly at this time.
But, I’ll check to see if there are any bugs that are preventing the post_title and post_content fields to work properly
The topic ‘Title behaviour’ is closed to new replies.