• Resolved timcampbell

    (@timcampbell)


    Hey Mark,

    I’m trying to come up with a solution for adding individual player profiles to the search results. What would be a good starting point to achieve this?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi Tim,
    Thanks for posting here. Assuming you are talking about the front end …

    I’ve looked at this before. The built-in WordPress search capability can be customized to do what you describe, and more. The problem (for me) is that it’s really a theme functionality. There are a number of good posts on the web on how to do this. Just search a bit with Google. So either I modify the WP search box, which doesn’t seem like a good idea for a plugin, or build a search capability for MSTW, but then where does it appear?

    In my mind, the solution is to write a widget, or a separate plugin that does this for MSTW. Then you could place the widget or display the plugin’s search box wherever you would like on your site. I haven’t gotten around to building that, BUT there are a number for plugins that claim to provide customized search for WP, including for custom post types (like players). I suggest you try one (or more) of these out first. Let me know how it goes. There may be a couple of things I need to tweek in the plugin(s) to make this functionality work better.

    Let me know.

    -Mark

    Mark,

    One of the issues that I am running into while testing different search plugins is how they index individual pages.

    They are looking for post/page types to index and whether or not they are ‘public’. Currently, the individual player profiles are set no. This makes it so that most search plugins do not list them in the results.

    So far the only way I have been able to get around this is by splicing a pair of plugins together but the results were a little off, lol.

    Any suggestion on how to clear this up?

    Ok, the best way to get this done is with a plugin called Relevannsi. You have to be sure to adjust one setting in specific to get individual profiles to show up –

    Respect exclude_from_search for custom post types

    should be unchecked.

    Hope this helps out everyone else and thanks again Mark for the help.

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Thanks for the info. I updated the plugin to fix the exclude_from_search issue in the plugin. It’s in the development branch on www.remarpro.com. The only file that you should need is in includes: includes/mstw-tr-cpts.php

    Regards,
    -Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Player Profiles listed in search results’ is closed to new replies.