Login

Lost Password

Skip to content
  • Themedutch – webdesign agency Themedutch – webdesign agency
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
    Page Header Image

    2 o more "tds-blogposts" on page repeating posts

    Dsovino
    0 Comment

    2 o more "tds-blogposts" on page repeating posts

    Home › Forums › Mikmag 3.0 › 2 o more "tds-blogposts" on page repeating posts

    Tagged: Shortcodes, tds-blogposts

    • This topic has 3 replies, 2 voices, and was last updated 9 years, 11 months ago by Helen (staff).
    Viewing 3 reply threads
    • Author
      Posts
      • at #72358
        Dsovinodsovino
        Member

        Hi folks. I need little help with a particular requirement for a client. He would like to have latest posts shown in 2 columns, but both from the same category. Something like:

        [tds-columns]
        [tds-column half animation=fadeInLeft]

        [tds-blogposts title="NOTICIAS" category="fashion" number="2" count="20" orderby="latest" image="large" showmeta="no" titleicon="fa-trophy"]

        [/tds-column]
        [tds-column half last animation=fadeInRight]

        [tds-blogposts title=" " category="fashion" number="2" count="20" orderby="latest" image="large" showmeta="no" titleicon="fa-suitcase"]

        [/tds-column]
        [/tds-columns]

        What would be your suggestion in order to avoid repeated posts on the second column, so the page can show the 4 latests post of the particular category? Is there any parameter on tds-blogposts in order to avoid repeated posts?

        I tried using single column and use css (fixed width and float:left), but of course the whole thing breaks up and it would require a lot of css intervention. Should i have to go with my own shortcode in order to achieve this?

        Thanks for your time.

      • at #72359
        Helen (staff)
        Keymaster

        Hi dsvino,

        What you could do to avoid repeating posts by using the same category like ”fashion” is following.

        Use the shortcode in 1 column and use orderby=”latest”
        Use the shortcode in 1 column and use orderby=”random”

        the first column will show all latest posts in the category fashion
        the second column will show all posts in the category fashion in a random order.

      • at #72360
        Dsovinodsovino
        Member

        Thanks for quick reply Helen.

        However, by using random doesn´t quite fix my problem, because I need exactly the latest 4 items. I think that using “post__not_in” should do it, so i think i’ll need to create my own shortcode so achieve this (probably using as a base for it).

        Once again, thanks for your time.

      • at #72361
        Helen (staff)
        Keymaster

        Hi dsovino,

        Thanks for your reply and explanation. Good luck on this one!

    • Author
      Posts
    Viewing 3 reply threads
    • You must be logged in to reply to this topic.
    Log In
    © 2020 - THEMEDUTCH BV.