why doesn't the display-posts shortcode work on my blog?

  • Unknown's avatar

    Hi folks,
    the display-posts shortcode doesn’t work on my blog. It worked with one page–food–but not with bridge bottoms. I added “bridges” as a tag to all my bridge bottom posts in case the problem was two-word tags, but the result is the same. Instead of at least 9 posts, it shows only two, after a long list of weird stuff. You can see it on my Resident Alien blog under drafts. The page is called “Bridge Bottoms” for now.
    Am I doing something wrong?
    Thanks,
    Barbara

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi Barbara,

    I just took a look at your draft page. That long list of weird stuff often appears when you paste text from a word processing program like Microsoft Word. I removed that for you, so now you just have the display posts shortcode.

    When I preview your page, I see 8 posts listed there. I checked your bridges tag and see that you have 8 posts with that tag, so it looks like you’re all set. :) If you’d rather use your “bridge bottoms” tag (instead of “bridges”) you can use this shortcode:

    [display-posts tag="bridge-bottoms"]

    Please let me know if you have any questions about that. :)

  • Unknown's avatar
    mijnschrijverij · Member ·

    Hi Rachel, yes, this time it works with bridges. But the other day I tried it and it didn’t. Then I tried it with the tag Humor, and I got one post. Now I’ve got ten, but that’s still not nearly all of them. When I search for humor in the dashboard on all posts, I only get one. I think it’s something weird that’s going on with my tags. Any idea what it could be?
    Thanks,
    Barbara

  • Unknown's avatar

    Could you please send the link of the page where you encounter the issue?

    Do you also encounter this issue in a different browser? for example Internet Explorer or Google Chrome?

  • Unknown's avatar
    mijnschrijverij · Member ·

    The page is my Humor page, http://residentalien.co/humor-2/
    I don’t know how to link to my list of all posts and show that when I search for “humor”, only one post shows up, and it’s not even mine; it’s one I reposted. I think the problem lies with my tags. It seems that they get read inconsistently somehow.
    Yes, I tried the same in Explorer and I got the same results.
    Also, the 10 “humor” posts that show up on my page with the shortcode are the most recent. For instance, my most read “humor” post, “The Gap” is from longer ago and it doesn’t show.
    Thanks,
    Barbara

  • Unknown's avatar

    The shortcode shows the 10 most recent posts with the humor tag. If you want to show more tag you can add this part to the code: posts_per_page=”100″

    Obviously you can adjust the number of posts shown per page.

  • Unknown's avatar
    mijnschrijverij · Member ·

    Thanks. The “100” posts works with the “Humor” page. But I just made a new page, “Creative Writing”, and it has zero posts. There’s still something weird going on with my tags. the page in question is
    https://aresidentalien.wordpress.com/wp-admin/post.php?post=5984&action=edit&message=6

  • Unknown's avatar

    You’ll need to add the slug of a tag, in this case it needs a dash (-) between the two words, so: creative-writing.

    You can see the slugs of your tags at https://aresidentalien.wordpress.com/wp-admin/edit-tags.php?taxonomy=post_tag

  • The topic ‘why doesn't the display-posts shortcode work on my blog?’ is closed to new replies.