• Resolved Elyes EZ

    (@elyeszitari)


    Hi,

    I duplicated a page containing the plugin shortcode. On the new page, the search engine displays correctly when the page is in draft. when I make the page public, the shortcode is displayed publicly on the page! it only does this on the new pages that I create and not on the old ones.

    is there a limited number of instances for the short code on the same worpdress site?

    thank you for helping me.

    Info : i use polylang for multilingual site.

    • This topic was modified 2 years, 1 month ago by Elyes EZ.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    No – it is not limited in any way.

    If the plugin shortcode is not displayed for some reason or the layout is broken in some way – that is usually because of cache. This is very likely the case, because as you said in draft mode it looks all right – but it is not okay when published. That information tells me, that assets on the page are very likely heavily cached and the search is not displayed correctly due to the missing stylesheets.

    Try clearing all layers of cache, that should very likely solve the problem.

    All the best,
    Ernest

    Thread Starter Elyes EZ

    (@elyeszitari)

    tahnks,

    Even when creating a new page, the shortcode remains as it is without processing!, yet works well on other pages of the same website! I did cache tests on two sites in prod and pre-prod, same problem. Is there another path to follow?

    • This reply was modified 2 years, 1 month ago by Elyes EZ.
    Plugin Author wpdreams

    (@wpdreams)

    I honestly don’t know – the styles are enqueued as they should be, via the qneueue style functions for WordPress.

    Can you share a link where the shortcode is broken? Maybe I can see what exactly is missing and go from there.

    All the best,
    Ernest

    Thread Starter Elyes EZ

    (@elyeszitari)

    Plugin Author wpdreams

    (@wpdreams)

    Oh! So the shortcode is actually not rendered at all.

    That can only mean, that for some reason either the plugin is selectively disabled or the shortcode is deregistered, or indeed very heavily cached in a weird way.

    I can’t see any resources from the plugin on the english page whatsoever so it can be either.

    At first I recommend completely disabling all cache plugin and solutions temporarily via the plugin page, that is still the most likely cause of the problem. With that and clearing the cache you could be able to verify if that is the case.

    If not, then this is something more serious on the server side. Something else is either preventing the plugin from loading at all or deregisters some of it’s hooks programmatically. That is very unlikely – unless you use some sort of a selective plugin loader plugin, custom code or anything like that, in which case I recommend checking that as well.

    All the best,
    Ernest

    Thread Starter Elyes EZ

    (@elyeszitari)

    I just checked, in fact, we use a selective plugin for changing plugins according to pages. Thank you for you precious help.

    Plugin Author wpdreams

    (@wpdreams)

    Neat! At last it is okay now 🙂

    I will mark this as resolved then.

    Feel free to rate the plugin if you like it, it helps me greatly.

    All the best,
    Ernest

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

The topic ‘Display a shordcode on a public page but works on a draft page’ is closed to new replies.