Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #987444
    Valerio
    Participant

    Hi,

    recent posts shortcode is showing fine within cornerstone (see attachments), but not on the live site, where I can only see the shortcode. What’s wrong with it?

    Thanks

    #987447
    Valerio
    Participant
    This reply has been marked as private.
    #987498
    Paul R
    Moderator

    Hi Valerio,

    Are you using the recent posts element or recent post shortcode?

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #987515
    Valerio
    Participant
    This reply has been marked as private.
    #987545
    Lely
    Moderator

    Hi There,

    Would you mind providing us FTP credentials so we can check if this is a result of any customization on the child theme?

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #987559
    Valerio
    Participant
    This reply has been marked as private.
    #987645
    Lely
    Moderator

    Hello There,

    Thank you for the credentials.
    The issue is coming from your custom recent post function.

    On line 61 of your child theme functions.php file you have declared this function name x_shortcode_recent_posts_v2code. That function name holds that update of your recent post element.

    Then on line 138 we have this function:

    function recent_posts_rebinding () {
      remove_shortcode( 'x_recent_posts' );
      add_shortcode( 'x_recent_posts', 'x_shortcode_recent_posts_v2' );
    }
    

    That function will remove the existing recent post element and should add the new one we have added which is x_shortcode_recent_posts_v2code. But then as you can see above it is x_shortcode_recent_posts_v2.

    Please update this part:

    function recent_posts_rebinding () {
      remove_shortcode( 'x_recent_posts' );
      add_shortcode( 'x_recent_posts', 'x_shortcode_recent_posts_v2' );
    }
    

    To this:

    function recent_posts_rebinding () {
      remove_shortcode( 'x_recent_posts' );
      add_shortcode( 'x_recent_posts', 'x_shortcode_recent_posts_v2code' );
    }
    

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-987444 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>