Display Posts Shortcode
[resolved] I am so confused... (4 posts)

  1. lanee1014
    Posted 4 years ago #

    I really am not usually this dense...but how does one utilize this plugin?

    I am trying to split posts onto two different pages on the WordPress site that I am building. I'd like to display posts from a certain category on a password protected page and all the other categories on the main blog page.

    I tried just adding in [display-posts tag="Behind_the_Scenes" image_size="thumbnail"] in the content area of the Page where I'd like them to display, and it doesn't seem to be doing anything at all.

    Am I missing something super simple here?

    For reference here is the site I am working on: http://dev.techquility.net/dhfos/ The two pages will be Blog (for most posts) and Behind the Scenes for blog posts that are categorized specifically as "Behind the Scenes" - like the most recent post on the Blog (Mylar Concept Art, Part One).

    Thank you so kindly in advance for any help you can provide. :)


  2. Bill Erickson
    Plugin Author

    Posted 4 years ago #

    There's two issues: you're using categories, not tags. And "Behind the Scenes" has a slug of "behindthescenes" . You can tell by going here: http://dev.techquility.net/dhfos/index.php/category/behindthescenes/

    You should be able to get this to work using the following shortcode: [display-posts category="behindthescenes" image_size="thumbnail"]

  3. lanee1014
    Posted 4 years ago #

    Thank you so much Bill! I got it working. Now...can I have it display the entire post instead of just a link to the post?

    Also, how can I exclude the Behind the Scenes category from the main Blog page of posts?

    Thank you again, so so much for your help.

  4. Bill Erickson
    Plugin Author

    Posted 4 years ago #

    Add both these to your theme's functions.php file or a core functionality plugin.

    To display the full content: http://www.billerickson.net/code/display-posts-shortcode-full-content/

    To exclude the behind the scenes category from your main blog: https://gist.github.com/3013827

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.