• Resolved Antony W. Serio

    (@antony-w-serio)


    I am trying to get the hang of invoking shortcode in blog posts. I tried inserting <code>[display-posts tag="story" posts_per_page="20"]</code> at the start of a blog post. The first thing I noticed was that TinyMCE had conveniently bracketed my code with <p></p>. The end result was the text [display-posts tag=”story” posts_per_page=”20″] was inserted at the start of the post. I tried this both with and without the <code></code> brackets. Obviously I am doing something wrong. Is the display-posts shortcode currently included with the latest iteration of wordpress?

    The blog that I am experimenting with is hosted locally on my home computer with MAMP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is the display-posts shortcode currently included with the latest iteration of wordpress?

    There is no “display-posts” shortcode built into WordPress. A list of built-in shortcodes can be found here.

    [shortcode] is the proper way to invoke a shortcode. There is no need to surround with <code> tags.

    Thread Starter Antony W. Serio

    (@antony-w-serio)

    Right. I need to block my searches from straying into wordpress.com territory. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘invoking shortcode in post’ is closed to new replies.