[Resolved] WPSP to use "selected" tag

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP to use "selected" tag

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Tom 2 years, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1628

    Lyle
    Participant

    Hi Tom,

    The is further to what you provided the answer for in the GP forum, whereby you add the category slug to the renamed copy of the archive.php page and I then added an Elementor shortcode to display that category using a layout created with Elementor. That works slick! 🙂

    But someone mentioned on one of the forums about being able to do the same sort of things with tags. I adapted that method and used a renamed copy of the archive page as tag.php and placed in the shortcode with the ID of an Elementor page that had the WPSP widget on it displaying a list that was set to tag and then the actual tag supplied there. That worked as expected for that specific tag.

    What I am asking then, is there a way to set this up so that one doesn’t have to hard code the tag value in advance? I can get it so that I can style the tag page display (page header, etc.) but cannot figure out how to add the WPSP formatted layout. Hope this makes sense! LOL 🙂

    Cheers!
    Lyle

    #1646

    Tom
    Keymaster

    Hi Lyle,

    Sorry for not getting back to you sooner – battling a nasty cold/strep throat.

    By not having to hard code the tag value, do you mean not having to add the tag name to the .php file?

    #1649

    Lyle
    Participant

    Oh, that’s never fun … get better soon 🙂

    Yes, just like it currently works when one clicks on a tag in a post but I would like to have WPSP display the result.

    #1657

    Tom
    Keymaster

    Just finally getting better – brutal couple weeks!

    Currently, the plugin needs to have args set to tell it what posts to display.

    In order to achieve something like this, the plugin would need to take the current queried object (tag, category etc..) and use that data to display posts.

    I would like to add the ability to add args into the shortcode itself to overwrite the ones set when creating the post list. When that happens, something like this could be possible as you could simply overwrite the taxonomy/term inside the template file.

    I’ve gone ahead and added this as an enhancement so I don’t forget about researching it: https://github.com/tomusborne/wp-show-posts/issues/2

    #1660

    Lyle
    Participant

    That sounds great, Tom ! 🙂

    BTW, my sister in James Bay sent me some “disturbing” photos … there’s this white stuff all over the place! LOL 🙂

    • This reply was modified 2 years, 4 months ago by  Lyle.
    #1666

    Tom
    Keymaster

    All gone now! lol

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.