Custom page show blog posts on tag

105 views Asked by At

Since I am not so great programming in PHP I wanted to ask my question here, hopefully you guys can help me out.

I'm building a WordPress website, this website has a custom page template like custom-single.php.

On that custom template I want to show posts filtered on a tag. And the tag is coming from a Angular value like so {{ctrl.name.tagname}} and yes ofcourse I've made a tag as well in WordPress.

The code must show max 5 posts (fully with title and ofcourse the content), after the posts it must show max 5 items which are older then 5 posts before, but then only with title using a bullet-list.

2

There are 2 answers

1
Soner PALANCI On BEST ANSWER

https://tr.wordpress.org/plugins/display-posts-shortcode/

When you install and activate this plugin called Display Posts Shortcode, you will add the feature that enables you to create text lists.

If we want to list our articles about a label, we can use a shortcode like [display-posts tag = ”tag_name”].

Number of posts to be displayed on one page (eg 20): posts_per_page = ”20 ″

I hope it will be the answer

1
Soner PALANCI On
  1. If your aim is not to learn php but only to solve your problem in your wordpress related project; you can support your question with visuals.

  2. If you say I don't want to deal with the problem, you can get support from any freelance software developer at an affordable price. Sometimes you will be happier soon with this method.