[Resolved] [Plugin: Posts in Page] Posts from Tags
I just wanted to see how to add posts to a page with a specific Tag. For instance my website covers video games, so the way I want to use the plugin is to show posts on a page for a specific title that a relevant to that title. For example, the Halo 4 page will display posts that have something to do with Halo 4.
I’ve combed through the short codes and I don’t see how to do this yet. Please let me know if this is a possibility.
Great catch, Russ.
You can use tags, but we neglected to give an example. I’ll update the plugin readme.txt right away to show this, but in the meantime, here’s how you do it:
. . . where ‘cooltag1’ is the slug of the tag you’d like to pull into the page.
Hope that helps.
I have an issue where when using the shortcode above to display posts by tag onto a page it gives me an error. I am running 3.5 so that may or may not be an issue. Any ideas? I have not edited any page template with code and am trying to use shortcodes to display with the plugin activated
I’m checking into this on my end.
What error are you seeing?
My mistake, I had an input error on my tag slug adn it caused it to malfunction.
I ran tests here with WordPress 3.5 and the Posts in Page plugin and everything seems to be working fine.
I have a tag called cooltag1 and am able to copy and paste the shortcode from earlier in this post directly into a page and it’s pulling them in fine.
- I’d like to know what error you’re seeing.
- I’m also interested to know if it was working for you on 3.4.2 and then stopped after you upgraded to 3.5
- Finally, depending on the site, you may try disabling all other plugins and seeing if one might be interfering in some way
Let me know what you find out.
I started on 3.5 and it was my issue, it works great!!! http://thelibertycaucus.com/watchdog/slc to see it working if you need to.
Right on; glad to hear you got it working.
Have a great day!
when I use multiple tags I get bthe following error:
Warning: preg_match() expects parameter 2 to be string, array given in /mnt/web1/a3/10/51938310/htdocs/WordPress_01/wp-includes/query.php on line 1793
Warning: preg_match() expects parameter 2 to be string, array given in /mnt/web1/a3/10/51938310/htdocs/WordPress_01/wp-includes/formatting.php on line 609
The posts are not shown.
Here ist my shortcode:
I am using WordPress 3.5.1 (just updated it, and that did not help)
- The topic ‘[Resolved] [Plugin: Posts in Page] Posts from Tags’ is closed to new replies.