• Resolved nicksmith2

    (@nicksmith2)


    Hiya

    Sorry if there’s already a post about this but I was unable to find it.

    I’d like to create two different sets of posts. One using the following shortcode: [posts-by-tag tags = “newsletter”] and then another to include a list of posts excluding the tag “newsletter”.

    Is this possible?

    Regards
    Nick

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

    (@sudar)

    Hello Nick,

    Yes that’s possible.

    [posts-by-tag tags = “newsletter”] will display all posts that belong to the newsletter tag.

    [posts-by-tag tags = “newsletter” exclude="true"] will display all posts that doesn’t belong to the newsletter tag.

    Thread Starter nicksmith2

    (@nicksmith2)

    Hiya @sudar

    Thanks for the quick response. That resolved that issue, but it caused another one :/

    The first [posts-by-tag tags=”newsletter” exclude=”true”] post went in as a link and the rest followed as list items then. For the [posts-by-tag tags=”newsletter”] posts, all posts were posted as list items, which is what I wanted.

    How do I get both shortcodes to work the same?

    Regards
    Nick

    Plugin Author Sudar Muthu

    (@sudar)

    Oops. I missed your earlier message ??

    Can you send me a screenshot of the issue that you are currently facing?

    Thread Starter nicksmith2

    (@nicksmith2)

    Good afternoon

    I managed to fix my original problem and both columns are now showing the information that I want them to show by using the short-code you provided. Thanks.

    https://www.ceredigion50.org.uk/en/news-and-events/

    However…the layout of the posts have now changed!

    By clicking on the link above you can see that 3 of the 4 posts are in a box. One link isn’t though. Would you know why this? If you also change language (choose ‘Cymraeg’ from the option in the footer) I have the same problem with my Welsh page.

    Regards
    Nick

    Plugin Author Sudar Muthu

    (@sudar)

    Hello Nick,

    Looks like this is happening because of some CSS issue in your site. You may have to debug the CSS around those elements.

    Thread Starter nicksmith2

    (@nicksmith2)

    Hi Sudar

    Thanks for the response. I’ll take a look at the CSS issues surrounding this.

    Regards
    Nick

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode Exclude Post by Tags’ is closed to new replies.