• Resolved divydovy

    (@divydovy)


    Hi! Cool plugin, thanks.

    Might be doing something stupid so thanks in advance for help.

    Using a custom layout with S&F Pro.

    – On the default layout, the results show the content correctly (i.e. the excerpt from the post that is the search result.

    – On a custom template I have: title, excerpt, link. The Title and Link correctly reference the search result but the excerpt is pulling the content from the page that the search results form is on. I.e. it’s showing the shortcodes from the S&F Pro page, not the content from the post that is in the search result. In the preview, it behaves correctly but on the front end it’s misbehaving.

    Any ideas?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hey @divydovy , thanks!

    That does sound odd, any chance of sharing a link to look at?

    Can you also share a little more information:
    – How are you implementing Custom Layouts, via Gutenberg blocks or via shortcode?
    – What theme are you using?
    – Any other customisations in your setup you think might be relevant?

    Best
    – Ross

    Thread Starter divydovy

    (@divydovy)

    Thanks for getting back to me Ross.

    It’s behind a VPN I’m afraid.

    But the page contents are just:

    [searchandfilter id=”2449″] [custom-layout id=’2451′]

    When I use the default template, everything is good.

    With a custom template, all other fields are fine except the excerpt which just displays the shortcodes above.

    I can only think maybe there’s an issue with the ‘excerpt’ code which is looking at the wrong post it – maybe there’s a wp_reset_query() or something somewhere?

    I can jump on a screenshare if you want? I’m UK.

    Plugin Author Code Amp

    (@codeamp)

    Hey @divydovy

    I need to test this out locally first (just trying to find some time to do so)

    I should be able to do this by tomorrow and if I can’t recreate, we’ll proceed to next steps to see what is going on.

    I’ll update today/tomorrow and we can take it from there – hopefully its a reproducible bug that I can issue a patch for.

    Thanks
    – Ross

    Thread Starter divydovy

    (@divydovy)

    Thanks Ross. Pls shout if I can help at all ??

    Plugin Author Code Amp

    (@codeamp)

    Hey @divydovy it’s been a busy couple of days but on top of it now, I’ll look at this tomorrow for sure and update.
    Best

    Plugin Author Code Amp

    (@codeamp)

    Hey @divydovy

    I’ve had a chance to go through and test but can’t replicate your issue.

    I’m probably doing something different so maybe a peek at my setup might help?
    https://drive.google.com/file/d/19XMuGUg2QaJtDvh779ONnphu_LMlMIV0/view?usp=sharing

    If you could send a recording of your setup and how it works that might guide me in the right direction? Otherwise, recreating the issue on another environment we can both access might be the best way forward…

    A couple of questions:

    1) Can you recreate the issue with Search & Filter disabled? (my guess is yes)
    2) Is this on a clean install? Can we try reverting to a default theme + disable other plugins to verify?

    Re wp_reset_query – we don’t actually use functions like the_post() for going over our loops – exactly to avoid the kinds of messes created by missuse of these functions.

    We do however, store the results of the query in WP transients, for faster loading.

    To bypass this (for testing) you can add this to wp-config:
    define( 'CUSTOM_LAYOUTS_DEBUG', true );

    This only disables the internal plugin caching (for now).

    Let me know your feedback on the above!

    Best

    Thread Starter divydovy

    (@divydovy)

    OK that is weird. Can you show me what you have in the CMS side of things?

    Plugin Author Code Amp

    (@codeamp)

    Hey @divydovy , my install was just a clean install with the Custom Layouts plugin (and S&F).

    In the gif, you can see me creating the first custom template, mostly default settings.

    Why don’t you create a temp site here to show me the issue (first one is free I think, and doesn’t require sign-up)?

    tastewp.com

    I’ll then be able to tinker with this to.find out the issue (I’m keen to resolve!)

    Best

    Best

    Thread Starter divydovy

    (@divydovy)

    Super weird but thanks so much for investigating. Sounds like it must be an issue my end. Feel free to close the ticket and I’ll try to troubleshoot and report back. Won’t be for a month or so tho.

    Thanks again Ross.

    Thread Starter divydovy

    (@divydovy)

    Closing ticket.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘S&F Pro-linked Custom layout excerpt shows parent page content’ is closed to new replies.