• Resolved spinhead

    (@spinhead)


    I’m struggling to add quotes to a custom theme. I’ve added

    do_shortcode( "[quotes-llama]" );

    inside php tags in my page template, but nothing displays. I have added quotes, and other text put before and after the shortcode display, so perhaps I’m just using it wrong.

    after WordPress calls get_header and closes the php, I declare a div with the class quotes and inside that div I have php tags with the above code between.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author oooorgle

    (@oooorgle)

    Hi spinhead,

    Are you echoing the do_shortcode?
    <?php echo do_shortcode('[quotes-llama]'); ?>

    Thread Starter spinhead

    (@spinhead)

    I was not using echo. Not sure why that information wasn’t in my brain even after decades of using WordPress. Thanks.

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

The topic ‘using do_shortcode in page doesn’t add quote’ is closed to new replies.