• Resolved hopetommola

    (@hopetommola)


    I’m sorry to say the above URL won’t show you the error because I have a dev version of the server for problems just like this. I updated to 4.8.1 (and all plugins / themes) and using do_shortcode in my template file no longer works. I revert the plugin back to the former version, and it works again.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author johnzenausa

    (@johnzenausa)

    Okay let me see.

    Plugin Author johnzenausa

    (@johnzenausa)

    I’d like to know some more information about the problem with ‘do_shortcode’ function. I mean what exactly do you see? Is it an error or just not seeing the posts. And also I’d like to see the shortcode you use.

    • This reply was modified 7 years, 5 months ago by johnzenausa. Reason: corrected typo
    Plugin Author johnzenausa

    (@johnzenausa)

    Update to the latest version and let me know if it’s fixed.

    Plugin Author johnzenausa

    (@johnzenausa)

    Since I have not heard from you will mark this thread as resolved.

    Thread Starter hopetommola

    (@hopetommola)

    The posts do not show, even after updating to latest version. Here’s the do_shortcode:

    echo do_shortcode("[netsposts days=\"30\" exclude_post=\"1\" titles_only=\"true\" show_author=\"true\" list=\"12\" include_link_title=\"true\" exclude_blog=\"56,43,41,38,36,29,22,21,16,9\" title_length=\"50\"]");

    Plugin Author johnzenausa

    (@johnzenausa)

    I added the following code in the footer.php file in the twentyseventeen theme and it’s working perfectly.

    <?php echo do_shortcode('[netsposts include_post="22" show_categories="true" use_shortcode_in_excerpt="true"]'); ?>
    <?php echo do_shortcode('[netsposts include_blog="1" show_author="true" thumbnail="true" size="90,90" include_link_title="true"]'); ?>

    The url is here: https://johncardell.com/uncategorized/test-post-2/

    I suggest you retype your code without the back slashes and make sure you manually type in all double quotes.

    Plugin Author johnzenausa

    (@johnzenausa)

    @hopetommola

    Okay I see why it’s not working. Change the double quotes to single quotes that is surrounding the brackets.

    You have "[ when it should be '[.

    Since double quotes are used inside the brackets single quotes must be used to surround the brackets.

    Hope this solves the problem. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘do_shortcode is not working after update’ is closed to new replies.