Title: Not finding shortcode content
Last modified: September 15, 2017

---

# Not finding shortcode content

 *  Resolved [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/)
 * You can clearly see the term “Titan” on this page. It is being pulled into this
   page from a Post via a shortcode (from Content Views plugin).
 * [http://desertdiamond.wpengine.com/tucson/gaming/slots/](http://desertdiamond.wpengine.com/tucson/gaming/slots/)
 * The post shows up in the search results, but not the page that contains the shortcode.
 * My understanding was that this plugin should index the content of the shortcodes,
   so the page that is pulling in the post should appear in the search results for
   that term.
 * Am I incorrect in my understanding?
 * I just installed the pluging and did a fresh index.
 * Thanks,
    j
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnot-finding-shortcode-content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9501636)
 * Can’t see clearly anything, as the page is password protected…
 * But yeah, if you’ve enabled the “expand shortcodes” option in Relevanssi setting
   and have indexed the database afterwards, Relevanssi should see the short code
   content.
 * I just tested this on my test site and it works just as expected – both the original
   post and post with the view show up in the search results.
 *  Thread Starter [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9502561)
 * I can send the login to view the site (just don’t want to post publically) if
   you want to look. I have no clue why it is not functioning as described.
 * Thanks,
    j
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9502681)
 * > I can send the login to view the site
 * Please don’t. Plugin author’s get into trouble for accepting offers like that
   here.
 * I get that you don’t want to share your URL but can you provide phpinfo output?
 *  Thread Starter [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9503175)
 * It’s not top-secret or confidential- it’s just not ready for the world to see
   yet. The host password protects certain installs automatically, so I can’t remove
   it at the moment. Have no problem sharing the creds to view the site, just rather
   not post it in this forum. It’s probably the best way to troubleshoot the issue.
   Here’s the phpinfo tho: [link](https://docs.google.com/document/d/1LQQOdaHHCuBTFaSxSWAUeamiMRvKAw-nXC9ZXewIXe4/edit?usp=sharing)
   
   What would we be looking for here?
 * Thanks,
    j
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9505348)
 * Nothing, phpinfo doesn’t really help here at all.
 * So is “expand shortcodes” enabled and have you tried rebuilding the index?
 *  Thread Starter [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9506729)
 * Yes, it is checked and have rebuilt several times.
 *  Thread Starter [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9506762)
 * It does not seem to be limited to the Content Views. I picked a random 4-word
   phrase from the home page (static Page content) and that did not produce any 
   search results.
 * It seems to also be producing inconsistent results. I did a search for a word
   that is included in a Content View on the Home page (from a Post), that is also
   included in a Content View on the “Entertainment” page. The search results show
   the original Post, the “Entertainment” page, but not the Home page.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9508408)
 * Hard to say what’s wrong. There’s no reason why it shouldn’t work: I’ve tested
   and Content Views plays nice with Relevanssi. There are, however, many reasons
   why it’s possible plugins don’t work well together; the problem may be in your
   theme, for example.
 * If a random word doesn’t work, make sure it’s not a common word that’s in the
   stop word list. Stop words can’t be found.
 * I can’t tell what’s wrong without a closer look at your site, and that is a service
   I can unfortunately only offer to Relevanssi Premium customers.
 * One way to dig into this is to see what Relevanssi is indexing. Take a look at
   the wp_relevanssi database. The “doc” column matches to post ID, so you can take
   a look at how Relevanssi sees your home page – are the words from the Content
   View there? If they are, then you’re having a search issue. If they’re not, then
   the issue is in indexing.
 *  Thread Starter [jacquid](https://wordpress.org/support/users/jacquid/)
 * (@jacquid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9510709)
 * From my original example, “titan” is found in the wp_relevanssi table only once,
   for the original Post, and not for the Page.
 * Confirmed the same with my last example: the term “Anjelah” is found in the table
   for the original Post ID, the “Entertainment” page ID, but not for the Home Page.
 * You were right about the Stop words, for my “random 4-word phrase from the home
   page” example. They were, in fact, ALL Stop words, and I was able to delete those
   and the search for that phrase was then successful.
 * So, the issue is indexing then?
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9515709)
 * This was solved. For some reason, just indexing didn’t work, but when the posts
   with the Content Views were saved, the content could be found.

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

The topic ‘Not finding shortcode content’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=2025044)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [search results](https://wordpress.org/support/topic-tag/search-results/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 10 replies
 * 3 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/not-finding-shortcode-content/#post-9515709)
 * Status: resolved