Display Post tags / Date format
-
Hi, your plugin seems very customizable which is great, but I have one problem, I can’t display posts tags and I can’t change date format using shortcodes.
I can’t use a widget because I had some JS errors so I used shortcode which works. ( it is Elementor, I don’t know why the widget is not loading posts )
This is my shortcode: [wpp range='all' taxonomy='category' term_id='30' thumbnail_width='353' thumbnail_height=200' stats_taxonomy='1' stats_date=1 post_html='<div class="pp-item"><div class="pp-item-inner"><div class="pp-inner-shadow"><div class="pp-image">{thumb}</div><div class="pp-content"> <span class="pp-date">{date}</span> <h4 class="pp-title">{title}</h4><a class="pp-read-more" "href="{url}">Read the Blog</a> {taxonomy}</div></div></div></div>' ]Her it is without the HTML structure so it is a bit cleaner:
[wpp range='all' taxonomy='category' term_id='30' thumbnail_width='353' thumbnail_height=200' stats_taxonomy='1' stats_date=1]So, I am displaying the posts from the category with ID 30. And everything works fine, but I want to display all the tags posts have.
I am referring to these parameters: https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#parameters
And if I for example add {taxonomy} parameter, that only shows the category name. But I need that to show all the tags the post has. ( I don’t need to filter posts by tags, I just need to display them )
I am trying to achieve this design: https://i.imgur.com/af5yac0.png
And I was able to do everything except those tags, and I don’t know, how can I change the Date format when using shortcodes?
*This option to build our own structure using HTML is really great, just one recommendation if you don’t have it already – when adding {url} parameter, it would be great if we could add it like
<a href="{url}">READ MORE</a>Sorry for the long post and thank you in advance.
The topic ‘Display Post tags / Date format’ is closed to new replies.