• Resolved hopetommola

    (@hopetommola)


    I’ve had this issue before … I have the php written into a theme template and it’s not working. I have the same shortcode in the body of a page, and it works fine.

    WP 5.2.2 / Twenty Nineteen Child Theme

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

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

    (@johnzenausa)

    Can you please paste here between backticks code here both the php and shortcode?

    Plus the link is http://local

    Thread Starter hopetommola

    (@hopetommola)

    The link is that because it’s on an inaccessible dev server.

    PHP:

    <?php
    	echo do_shortcode('[netsposts days="30" exclude_post="1" titles_only="true" show_author="true" list="9" include_link_title="true" exclude_blog="21,22,16,56,50,44,48,11,61,25,37,40" title_length="50"]');
    
    ?>

    SHORTCODE:
    [netsposts exclude_post="1" titles_only="true" show_author="true" include_link_title="true" exclude_blog="56,43,41,38,36,29,22,21,16,9" paginate="true" list="20"]

    Plugin Author johnzenausa

    (@johnzenausa)

    Swap the single and double quotes in the do_shortcode and see if that helps. If not grant me temporary superadmin privileges here. https://johncardell.com/support plus a proper link to your site.

    • This reply was modified 4 years, 8 months ago by johnzenausa.
    • This reply was modified 4 years, 8 months ago by johnzenausa.
    Thread Starter hopetommola

    (@hopetommola)

    You told me to do the opposite last time I had this issue … I reverted to the previous version. Subsequent versions worked, until now.

    Plugin Author johnzenausa

    (@johnzenausa)

    Ok won’t be able to look until Friday night.

    Plugin Author johnzenausa

    (@johnzenausa)

    Are you using at least php version 7.1? if not that is the reason for the errors. The plugin is not compatible with php 5 anymore must be php 7.

    Go to the very bottom of this page and you’ll see it works just fine on a theme template. I’m running PHP Version 7.1 on my server.

    https://orlando-montenegro-cruz.wondervegas.com/

    • This reply was modified 4 years, 8 months ago by johnzenausa. Reason: Showing link
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘do_shortcode is not working after update’ is closed to new replies.