February 21, 2017 at 1:44 am #1628
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 🙂
LyleFebruary 23, 2017 at 1:30 am #1646
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?February 23, 2017 at 10:02 am #1649
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.February 27, 2017 at 12:22 am #1657
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/2February 28, 2017 at 1:05 am #1660
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 🙂
March 1, 2017 at 12:18 am #1666
- This reply was modified 4 years, 4 months ago by Lyle.
All gone now! lol
- You must be logged in to reply to this topic.