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

    (@ajay)

    Is it YAARP or my plugin? If latter you’ll need to contact their support.

    If mine, then you can add this via Code Snippets plugin or your theme’s functions.php. Please check that the single quotes are simple when copying the below code.

    add_filter(‘crp_title’,’do_shortcode’);
    Thread Starter miuosz

    (@miuosz)

    Hi, sorry, yes it’s your plugin. We are contacting both supports since we use the both plugins on different sites. The code you provided sadly doesn’t seem to work.

    Thread Starter miuosz

    (@miuosz)

    Hi, would there be any way to help me with my problem still?

    Best regards.

    Plugin Author Ajay

    (@ajay)

    Where are you adding the above code? You can try putting the priority in there as below.

    add_filter( 'crp_title', 'do_shortcode', 99 );

    What is your site URL?

    Thread Starter miuosz

    (@miuosz)

    I’m adding the code to theme’s functions.php. The code with priority sadly doesn’t fix the problem. The site URL is – zwierzaki.pl

    Plugin Author Ajay

    (@ajay)

    @miuosz I can confirm I’ve got the same issue in my tests, but I’ll need to do some debugging to figure out why that is the case.

    Thread Starter miuosz

    (@miuosz)

    Thank you @ajay . It seems that the shortcode is being executed and working in posts that were uploaded after I added the code to functions.php. But there’s still problem with running the shortcode in older posts that were already on the site. Maybe this will help a little.

    For example:
    https://zwierzaki.pl/dzien-kota – this was posted 01.02.2023, most recent post after adding the code to functions.php

    https://zwierzaki.pl/swiatowy-dzien-zwierzat – an older post, from 03.01.2023

    • This reply was modified 1 year, 2 months ago by miuosz.
    Plugin Author Ajay

    (@ajay)

    That is strange. I’ll do some testing. Do you have the CRP cache enabled. If so, could you clear it via the Tools page?

    Thread Starter miuosz

    (@miuosz)

    We are using a cache plugin (WP Rocket to be exact). I’ve tried clearing the cache and even turning off the plugin entirely. Sadly doesn’t fix the issue.

    Plugin Author Ajay

    (@ajay)

    @miuosz I’ve trying to figure this out with my test installs and for some reason this seems to be working for me which wasn’t the case the one time I tried it.

    Can you check Tools > Related Posts Tools in your admin area and hit Clear Cache.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Exectute shortcode in output’ is closed to new replies.