Title: Title behaviour
Last modified: September 19, 2017

---

# Title behaviour

 *  [Serafino](https://wordpress.org/support/users/seraph63/)
 * (@seraph63)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/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
   you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftitle-behaviour%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9511451)
 * 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”.
 *  Thread Starter [Serafino](https://wordpress.org/support/users/seraph63/)
 * (@seraph63)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9512247)
 * Thank you for quick reply, below more details:
    - “Find related posts on content as well as title” is unchecked (please see 
      [config page attached](https://screenshot.net/86yygu2))
    - Plugin installed for listings: “[Advanced Classifieds and Directory Pro](https://it.wordpress.org/plugins/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](https://screenshot.net/10ooqs8))
   
   Listing with image content displays related post with title ([see here](https://screenshot.net/1wrrqa2))
   Listing with empty content displays related post with title ([see here](https://screenshot.net/xz00yf2))
    -  This reply was modified 8 years, 8 months ago by [Serafino](https://wordpress.org/support/users/seraph63/).
    -  This reply was modified 8 years, 8 months ago by [Serafino](https://wordpress.org/support/users/seraph63/).
    -  This reply was modified 8 years, 8 months ago by [Serafino](https://wordpress.org/support/users/seraph63/).
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9529600)
 * 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](https://wordpress.org/plugins/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.
 *  Thread Starter [Serafino](https://wordpress.org/support/users/seraph63/)
 * (@seraph63)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9534097)
 * Hello,
    I tried to install Query Monitor, but I did not find any useful clue 
   to fix the problem.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9536986)
 * 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
 *  Thread Starter [Serafino](https://wordpress.org/support/users/seraph63/)
 * (@seraph63)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9537865)
 * Please download file and folder contents on your PC from
    [https://www.dropbox.com/sh/i0v5gcbo3pqk9r5/AACtSxJI_xwiddY4jAOog_V5a?dl=0](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.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9540700)
 * 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, 4
       ```
   
 * That 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?
 *  Thread Starter [Serafino](https://wordpress.org/support/users/seraph63/)
 * (@seraph63)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9541394)
 * 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.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9566646)
 * 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

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Title behaviour’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/title-behaviour/#post-9566646)
 * Status: not resolved