• Hi, The relevanssi plugin it′s great!!
    I installated the plugin on a community site with PeepSo plugin. Relevanssi work fine, but when find a peepso-post result, the href results have this structure:

    mydomain.com/peepso-post/post-id

    It is pefect match, but when i click redirect to PeepSo activity feed. It should redirect to

    maydomain.com/?status/post-id

    I want change the souce code of plugin for generate the href of result replace “peepso-post” by “?status” but i search on all php of plugin and i don′t see how to do it.
    I have read so many articules on support forum, but i don′t find this function.

    Can you help my, @msaari??
    THANKS!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    First of all, you’re barking at the wrong tree here – the URL that gets printed on the search results page has nothing to do with Relevanssi. WordPress is generating it. This is good news, because you don’t have to modify Relevanssi files to change this. The change needs to happen in your theme, in the search results template.

    However, I have no idea how you need to change this. You won’t find any help on Relevanssi forums for this, because this is a PeepSo thing.

    If the URLs are really that simple, then using this on the search results template may print out correct URLs for you:

    <?php echo '/?status/' . $post->ID; ?>

    Using this instead of the_permalink() would probably do the trick – but if you have both regular posts and PeepSo posts in the results, then you need to add extra logic to use the_permalink() for regular posts and the custom code for PeepSo posts.

    It’s also possible PeepSo has a built-in function for generating the URLs. In any case, PeepSo support is a better place to inquire about this.

    Thread Starter David Ruiz

    (@statuspym)

    Hi Mikko,

    At the first, VERY THANKS, for your reply and your fast support. The plugin is great and the support too.

    No i′m talking with peepso developer for fix the issue, when i have the solution, i will write it here by if can help another one.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘replace url structure of results for Peepso activity’ is closed to new replies.