Posts By Tag WordPress Plugin

354 Comments so far

Follow up comments through RSS Feed | Post a comment

  • baron says:

    Works great, thank you…

  • Yuna says:

    This is real nice but do you think you could do one for categories too?

  • Navjot Singh says:

    Does it support custom taxonomies too? It would be nice if this plugin can also support template code too so that we can show the posts whereever we want.

    • Sudar says:

      @Navjot,

      The Plugin don’t support custom taxonomies (yet 🙂 ). I have added support for template tags in the latest version of the Plugin.

  • Hercules says:

    hey, firstly, great work on the plugin! I am just wondering if there is a php template for the widget, thanks.

    • Sudar says:

      @Hercules,

      I have added a template tag in the latest version of the Plugin. Check out the readme file to find out how to use it.

  • DrDrinx says:

    Hey, there’s a slight bug (or maybe it’s my version of WP), but i keep getting this when I try to activate the plugin:

    Fatal error: Class ‘WP_Widget’ not found in /home/content/j/a/w/jawatech001/html/LIQUIDASSETSTV/wp-content/plugins/posts-by-tag/posts-by-tag.php on line 69

  • Şahin Çimi says:

    nice plugin. i am sure a lot of wordpress user is waiting a plugin like that.

    but… in wordpress 2.8.3. it doesnt show thumbnail. And it is very important.

    and there should be also someting: we could make excerpt word limit .-) why Not:-)

  • @Şahin Çimi, the plugin uses ‘post_thumbnail’ special fields of your posts. So if you add thumbnails has different names to your posts, the plugin won’t display it. Edit the plugin’s file, find ‘post_thumbnail’ and change as you use, for example ‘thumbnail’.

  • Dear Sudar,
    I translated your plugin to Turkish. You can download here and you can read my post about your plugin here.
    Thanks for your plugin.

  • Sahin Çimi says:

    Yakup Kardes olmadi..

    bak calisan bir ornek var:

    <div class="post “>

    <a hr

    bunu bu eklentiye nasil entegre edicez. seninkinide indirdim. olmadi.
    tesekkurler.

  • Cool plugin! I have been wanting to add a ‘featured posts’ menu to my site for a while now.

  • Paul Liles says:

    Hello… Love your widget. I use it twice in my right hand sidebar and it seems to work fine except that the Title on the second occurrence is different than the first occurrence.

    The first one is: Recent Family Related
    The second one is: Recent Dance Related Posts <!– the font is always smaller that the first

    I moved them around and it seems that the first occurrence leaves the system in a state that forces the change in the title?

    The page source llooks like this:

    Recent Family Related
    Recent Dance Related Posts

  • Paul Liles says:

    Hello… Love your widget. I use it twice in my right hand sidebar and it seems to work fine except that the Title on the second occurrence is different than the first occurrence.

    The first one is: Recent Family Related
    The second one is: Recent Dance Related Posts <!– the font is always smaller that the first

    I moved them around and it seems that the first occurrence leaves the system in a state that forces the change in the title?

    The page source llooks like this:

    Recent Family Related
    Recent Dance Related Posts

  • Paul Liles says:

    Hello… Love your widget. I use it twice in my right hand sidebar and it seems to work fine except that the Title on the second occurrence is different than the first occurrence.

    The first one is: Recent Family Related
    The second one is: Recent Dance Related Posts <!– the font is always smaller that the first

    I moved them around and it seems that the first occurrence leaves the system in a state that forces the change in the title?

    • Sudar says:

      @Paul,

      I assume, you are using my Post By Tag WordPress Plugin. Let me know the url of your blog and I will have a look at it. I guess it is mostly a theme issue.

  • Hercules says:

    Hey! thanks for adding the template stuff! Only problem is the plugin doesn’t work on my wordpress 2.6.3 lol….. any chance it get it to work somehow? it triggers a fatal error when I try to activate it. thx again!

    • Sudar says:

      @Hercules,

      The Plugin is compatible only from 2.7. If it’s possible try to upgrade WordPress. The older version has some security issues also.

  • Hercules says:

    @Sudar

    Unfortunately, my theme only supports up to 2.6.3 I believe, I just tried to install 2.7 locally but the theme is all broken…..any chance I can get this plugin to work on 2.6.3? Thanks a lot for your help!!!

  • Hercules says:

    sorry, just another question…..

    Is it possible to display posts in a list by using the template? for some reason i’m not able to do this on single pages (where I’m hoping to display the links)…. any ideas? thanks again!!

  • Sister Julie says:

    Hi – fabulous plugin. One question: I see the code that calls for the author of the post. I’d like to remove that since not necessary for our blog. But, don’t know code well enough to know how to extract it. Would appreciate your help. Thanks.

  • Bill says:

    Installing this on WP 2.9.2 triggers Fatal error: Call to undefined function. Had to uninstall via FTP just to get back into WP dashboard.

  • Bob says:

    Is it possible to use as shortcode in posts or pages?

    • Sudar says:

      @Bob,

      Right now it is not possible to use shortcodes. But if you have a real need for it, then let me know and I may be able to add this feature to the Plugin for you.

      • Karsten says:

        For my blog I need just that, a list of post of a certain tag within an page.

        Tried to embed your php code using phpexec plugin but does not show any results.

        Could you create the shortcodes function for us ? Or perhaps guide me thru my installation ?

        Thanks,
        Karsten

        • Sudar says:

          Working on adding the support for shortcode. Will release it in a couple of days. Stay tuned 🙂

          • Karsten says:

            Thanks 🙂

            Found solution to my initial problem: use lower case variable names (which let variable values to pass to the embedded function) and use return in stead of echo for the output (echo executes to early and output is written before the contend of the post. Return put the output inline with the shortcodes).

            Well, got two new issue now: need to add the post’s date to the list of posts found (similar to author’s name), and the […] should have a link to the post, too.

            And one last idea: pass “*” as tag name to get a list like

            Tag1
            List of posts

            Tag2
            List of other posts

      • Sudar says:

        Just released v0.8 of the Plugin which has the support for shortcode. Enjoy 🙂

  • Thankyou Very usefull, just what I needed and it installed in a breeze.

    Now, you are so clever that maybe even this is possible with your plugin: could it be made so that it shows the posts in alphabetic order??
    Somehow, this next line makes me think it would, but I don’t know enough code to know for sure.

    Thank you so much, and go on with your interesting stuff!

    regards, Robert

    /* $order (asc,desc) – To change the order in which the posts are displayed. */

  • Thanks for the wonderful plugin, like someone else who commented the option to use a shortcode would make this plug-in a must for any WordPress installation. It would really be great, I’d be willing to pay for a feature like that. Email me if possible. Thanks.

  • tees says:

    This plug-in is what I have been looking for!

    I just want to ask you regarding how to use “Template Tag” as I know nothing about php and can’t get the plug-in working on my site.

    The above code is correct? I’m not sure how to insert a name of a tag (e.g. perth) and number (e.g. 3). If incorrect, can you please advise the correct way to writing a tag name and a number?

    Thanks!

  • tees says:

    sorry, the code was missing in my previous post…

  • tees says:

    oh, apparently, php code I wrote won’t be shown in the comment… Then, I’ll remove those first and last parts. Sorry I’ve messed up your comment section.

    ($tags = ‘perth’, $num = ‘3’, $excerpt = false, $thumbnail = false, $order = ‘desc’, $author = false)

  • zmin says:

    Hello,

    I was thinking – since wordpress 2.9 already has a “post_thumbnail” feature included, could we use this insted of the custom field for the image thumbnail to ease posting to the tag widget?

    Also, i noticed the bullets in the lists have different classes like:

    I don’t know how they are generated, but i’m wondering if there’s a way to add a custom style to each one (via css). Say for example if i have 7 posts tagged in the widget, one color style for each day of the week?

    Thanks a lot for this very useful plugin!

  • Kris says:

    Is exactly what I was looking for; one less thing I need to create on my own now. 🙂

    One minor flaw with the shortcode implementation, though. You’re using “echo $output;” at the end of the posts_by_tag function instead of “return $output;”. That might be because you’re reusing the same method for both widgets and shortcode, but when I add the shortcode in the middle of a new page on my site, it echoes the output right at the top of the page content instead of inline where I placed the shortcode.

    I was able to update that line and then return the result in shortcode_handler function and now it works for me the way I need it. Not sure if that breaks the widget code (which I’m not using), but maybe something to look at for the next bug-fix release.

    Feel free to hit me up with any questions.

    – Kris

    • Kris says:

      Sorry, one more minor bug.

      I tried the order_by arg for the shortcode as ‘title’ and it didn’t work.

      I checked the code where you’re using the get_posts() function, and the parameter you have as ‘order_by’ is actually ‘orderby’. I made that change on my install and it worked fine.

      I hope this helps. This plugin is actually perfect for what I need, so I really appreciate you putting this all together.

      – Kris

      • Sudar says:

        Thanks for reporting this bug. I am currently making the code change and will release an update (with the fix for shortcode) tomorrow.

      • Sudar says:

        Kris,

        I have fixed both the issues in v1.0 of the Plugin. Please update the Plugin and let me know if you still face these issues.

        • Kris says:

          Sudar,

          Thanks for the update. I installed a new version of the plugin (v1.0) on a second blog and still came up with the same result. It looks like line 259 still has ‘echo’ instead of ‘return’ and that’s throwing it off. When I change that to ‘return’, the shortcode works fine, but I haven’t tested to see if that breaks the widget (which I’m not using).

          – Kris

  • Achim says:

    The template tag as shown on this page is actually not correct, it should say “posts_by_tag” instead of “postsbytag”. It’s correct on the official WordPress plugin page.

  • Achim says:

    While using the shortcode on a page, I’ve discovered that the plugin inserts the articles at the very top of the page, right after the heading. I am not sure if that is intentional or not.

    I’d much rather have it insert the articles at a position of my choosing. That way I could write “Here are the relevant posts: [posts-by-tag tags = "tag1, tag2"][/posts-by-tag]” and have the articles shown AFTER my text. Am I making any sense to you?

    Oh, and by the way, the closing tag ([/posts-by-tag]) does not seem to work for me. It is displayed as text on my page and does not seem to serve a function.

    • Karsten says:

      See those comments above.

      Misplacement happens because the plugin uses “echo” instead of “return”. There will be an updated version that fixes this soon. If you can’t way, search the code of the plugin for “echo” and replace it with “return” and it should work for you.

    • Sudar says:

      I have fixed the issue with shortcode on v1.0 of the Plugin. Please upgrade to v1.0 and let me know if you still face this issue.

  • Karsten says:

    Thanks for the great plugin !

    Short code works now. Passing of arguments thru PHP more reliable now. No need for closing shortcode tag.

    The misplacement still happens with me. Replaceing “echo” in line 259 with “return” made it working for me.

  • bulent says:

    is it possible to hide posts with specific tags from the home page?
    thanks

  • Viki says:

    Hello Sudar,

    The latest update for Posts By Tags has killed the plugin – I mean it just doesn’t display the posts anymore. Before I applied the update it was working beautifully.

    I have used the sidebar widget and tried using different tags since the previous ones were not working – but even after changing the tags noting comes up. I’ve tried single and multiple tag combinations.

    I don’t want to use the template tag / shortcode as the widget gives much more flexibility. Could you tell my what might be the reason that the posts for selected tags aren’t showing up.

  • jean says:

    Thanks for this great plugin, it’s really useful!

    Would it be possible for you to update this post with a sample of the shortcode with all the parameters included? It’s not always clear how they should be formatted.

  • Ray says:

    I seem to have some trouble getting the thumbnails to show up with the post to tags plugin. It’s really too bad because I am currently using a category based widget to display posts in the sidebar but I noticed that in conjunction with WP e-commerce, whenever I look at one of the product pages, all of the titles from the posts displayed in the sidebar are changed to whatever category name the products page has. If I use your plugin, I don’t seem to have that problem, but like I said the thumbnails don’t show up.

  • marcelo says:

    Hi thank you very much for this great plugin.
    I wander if it will be possible to set the post order by meta_key and meta_value. I’m using the plugin to display further events and this will help a lot to have them at the right dates.

  • redmike says:

    Hi sudar! I am using your plugin and I find it great.

    I only have problems on it when I install another plugin called WPML. I use this to translate my friend’s existing website from english to chinese but I can’t translate the post-by-tags’ title and its contents.

    I already checked the WPML’s configuration settings and their website and found no problem. The WPML can display the title that I put to post-by-tags and typed the right translation but when I check it to my browser it only displays the english one.

    Please give me idea how to fix it.

    You may check the WPML’s plugin and try it.

    Thanks!

    • Sudar says:

      Redmike,

      I am just displaying whatever text the user has entered as widget title. Since it is a user input I am not doing any translation.

      I am not sure how WPML, can hook into user input. If you know that code change to make then let me know or point me to WPML documentation and I can do the needed code change.

  • Greg says:

    There are only two features your plugin is missing to make it the defacto standard “recent post” plugin.

    1. Display posts from current tag. If your on a post tagged by, “Chicago”, then the widget would display recent posts from Chicago. This would accomplish the feature of “Related posts”. Which could be done with a separate plugin, but this feature is common to recent posts by category

    2. Display posts from categories. If your plugin did either tags OR categories, it would be a completely functional plugin for all possible blogs.

    • Sudar says:

      Greg,

      Thanks for the ideas.

      I completely agree with the first one and is there in my TODO list. Will work on it when I get some time.

      For the second idea, I am not sure if it would help to include categories, since there are already lot of Plugins which allow you to display posts based on categories.

    • Sudar says:

      I have added the first feature that you requested in v2.0 of the Plugin. Try it out and let me know if it works for you.

  • Nice job. One request (I see it’s been requested before): an option to show the date of the posts.

  • Thanks, I’ll watch for it. In the meantime, I moved to the posts-by-category plugin, which does have a date option. In the long run, I’d prefer to use tags for this.

  • Tom says:

    Is there any way to remove the list from the bottom of the sidebar, I am displaying three different posts in the sidebar and they are listed at the bottom.

    PS Plugin is great.

  • Tom says:

    The plugin works brilliantly, but on one page there is no images being displayed.

    I am using images as sidebar heading and these appear on all pages except for one.

    Any ideas.

    URL is http://www.rollingsea.co.uk

    problem page is Gallery page.

  • Bryan Eggers says:

    I just installed this plugin and really like it. But one thing I noticed is that the posts it displays aren’t the most recent posts about that person. So for example, if I wanted to feature posts about a celebrity, I’d like the latest news. Is there a way to force that? Good work on the plugin.

  • abarro says:

    Hi, Wonderful plugin!

    But I´m having a problem.
    For example, I need to use the shortcode to create a page with a list of posts I want to show for each tag.

    I´m using the shortcode, but the TRUE and FALSE parameters dont work for me.

    Any ideas why? Actually now that I remember, always when I need to use them, even for other plugins, they don´t work.

    Thanks!

    • Sudar says:

      Which true, false parameter you are talking about?

      • abarro says:

        Thanks for the reply

        These parameters:

        ($tags, $number, $excerpt = false, $thumbnail = false, $order_by = “date”, $order = “desc”, $author = false);

        I change them but the “default” settings continue to appear.

        Cheers

        • Sudar says:

          I just tried and the shortcode seems to be working fine. Can you point me to your blog where you are facing this issue?

        • Sudar says:

          @Abarro,

          This was due to a bug in the code that was handling shortcodes. I have fixed it in v1.6 of the Plugin. Try the latest version and let me know if you are still facing this issue.

  • bsquare09 says:

    Hi

    Thanks for that plugin.
    I would like to add an expiration date to display the posts with the widget in the sidebar.
    All the posst have a custom fiel expiration date so how to include that information in the plugin ?
    Thanks for your help.

  • donnac says:

    I cannot get the thumbnails to show; all I get is the empty box with an X indicating a missing image. however, I have indicated the # of posts to show and ticked the box to show thumbnails. In the functions page, I told it to

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 130, 93, true );

    but there is still only an empty box. In the General Settings, the media page has thumbnail sizes set also. I am running 3.0.4 version.

    Any ideas what I’m doing wrong?

  • Ansar says:

    Thanks for yor plugin, But How to use inside a page to display list of post by tag..

  • Hivvu says:

    Hi there, very nice plugin!
    its working very well, but i would like to add the category where that particularly post is, like a title for example…
    can you tell me if its possible and how can i do that?

    thanks in advance.

  • John Chandler says:

    Hi. I find if I use shortcode [Posts By Tag] and another shortcode from another plugin (e.g. [TubePress] or others) on the same page, the Post By Tag works but the other one doesn’t, i.e. I just get the shortcode showing (e.g. “[TubePress]”) instead of the output.

    Any ideas as to what could be done to fix this?

    Thanks in advance.

  • Mahmood says:

    NEED HELP! tried using the shortcode but the thumbnails don’t show on the post

    http://denimdaily.com/others/testing-fits.html

    also can i customize the css for this.

    • Sudar says:

      Do you have thumbnails associated with your posts?

      Yes, you can customize them using CSS.

      • Sudar says:

        I have released v2.0 of the Plugin which fixes the issue with post thumbnails. Try it out and let me know if this solves your issue.

        Regarding, customizing your CSS, read the styling guide below the Plugin description.

  • Jonathan says:

    Hello,

    This is great plugin and it does everything i want, but there is one slight problem.

    The Team that I currently use display’s the information about the author at the end of each post. When I use this plugin, it changes the name of the author of the post at the end of post. It looks like it sets the author of the post based on author who created the last related post entry.

    Let me give you an example:

    Jon creates a post and places the Post-By-Tag shortcode into the post. The post-by-tag shortcode is set to display the last 5 posts with the tag “WordPress”.

    The post-by-tag plugin returns 5 articles, 2 by Jon, 3 by Kevin.

    The Kevin article is the last one displayed by the Post-By-Tag plugin, regardless of whether it is set to display in ascending or descending order.

    At the end of the post, the About Author section of the theme displays Kevin’s information instead of Jon’s.

  • Robin Briggs says:

    Hello.

    I have a site that I’m using Posts By Tag that’s running WP 3.1. works great. However, I just created a bunch of new sites using WP 3.1.1 and PBT breaks. Here is the error:

    Fatal error: Call to undefined function: substr_compare() in /homepages/16/d364074706/htdocs/FalconeSupervisor.com/wp-content/plugins/posts-by-tag/posts-by-tag.php on line 79

    Any thought? I love this plugin, really don’t want to stop using it.

    Thanks.

  • I was so excited to find your plug-in, as i’ve been looking for something exactly like this.

    I am using the shortcode feature on a page where i call it multiple times to list various posts by tag.

    The page is a list of playground reviews, organized by tag. So on this page, I have use the shortcode to return all the reviews that have been tagged as having a “slide”, another call for posts that have “swings”, etc.

    What is supposed to go inside the brackets, where I have *** below?

    [posts-by-tag tags = "tag1, tag2" number = "5" excerpt = "true" thumbnail = "false" order_by = "date" order = "desc" author = "false"]***[/posts-by-tag]

    I’m finding strange behavior if I leave it empty between there — some of my shortcodes are being ignored. I put anything inside the brackets, it does not get displayed, but does correctly display all of my calls.

    I can provide more debug assistance if needed, I just wondered if this was a known issue or if I am doing something wrong.

    Again, thanks for this plugin, it is a huge benefit to me.

    Kendra

    • Sudar says:

      You should not place anything inside the tags. That’s how WordPress shortcodes are supposed to work.

      Can you show me an example page where it is not working so that I can figure out what the issue is?

  • Me again. Still using and loving the plugin, just wanted to throw out a couple of feature requests. These all apply to the shortcode I’m using in a page.

    * ability to display the post date
    * ability to control the length of the excerpt
    * would love it if I could get it to return all the tags related to the post that is being returned.

    Ex: returning all the parks with bathrooms. When those parks are listed, I’d love to show what features those parks have by displaying the tags associated with each of those parks.

    * it would be nice to be able to control the formatting of the results returned. The basic LI is adequate, but it would be nice to add formating like bold to the results.

    Just some ideas — thanks again for this great plugin!

  • I love how this plugin works like a charm, no problems with widgets and in php. But I do have one question that I have been searching for and this is the closest plugin so far. I am using a java script to grab IP and the CITY and REGION of the visitor, I want to plug the result from the JAVA script into the php plugin as the TAG and display those results, so the reader will be reading articles related to where they are located. Any ideas how I can accomplish that? Thanks in advance Martin

    • Sudar says:

      Well, it may not be possible to do it, since the shortcode is executed before the page is rendered on the browser, but JavaScript will know the location only after the page is rendered.

      You can probably use some AJAX and backend support to do it, but it might be slightly complex.

      • thanks for the reply. Is there any other way you think this can be done? I know I have seen some plugins that claim they do it, but honestly I have not seen one that works. Your posts by tag is so sweet!

      • OK I found a way to pull in the city and state through a PHP code:

        locate();
        echo “{$geoplugin->city} {$geoplugin->region}”
        ?>

        If I put this into the Advanced PHP widget it works, displaying the visitors City and State. If I take your php code:

        it works, so Now the question is how do I make them work together? Where it says TAG SEARCH I would like to place the results of City and State.

        Any ideas?

        Thanks
        Martin

      • ok sorry I messed that up…forgot the php code doesn’t carry over in comments…

        this displays the city and state:

        //php
        //require_once(‘geoplugin.class.php’);
        //$geoplugin = new geoPlugin();
        //$geoplugin->locate();
        //echo “{$geoplugin->city} {$geoplugin->region}”
        //end php

        you code:

        //php
        //posts_by_tag(“CITY STATE”, 7, true);
        //end php

        now how do I get CITY and STATE into your code?

        Thanks again…sorry

        Martin

        • Sudar says:

          Since you have to execute PHP code, you cannot use it in the widget settings page. However my Plugin also supports template function. Edit the template of your WordPress theme and call the posts_by_tag() function directly. Let me know if you still face any issues.

  • Abhishek says:

    Hi

    Thanx for your beautiful plugin. I am using it on my website.

    I got a problem, hope you will solve it. My website have tags like “download”, “windows”, “linux” etc. I want to list all post in a page where the post have tags like “windows” and “download” together.

    If both the tag match, then only it shows in a page otherwise ignore.

    I tried [posts-by-tag tags = "download, windows"], but it not worked as per my requirement.

  • 24x7News says:

    Thanks for this amazing plugin. a must have for every website.

  • Max says:

    Love the plugin, but I can not use it because it doesn’t display the thumbnails from featured images from the posts. I would like to display a page with listing of video posts with tags video and it does, but I need to show thumbnails for them. I know I set it and there are featured images in those posts, because it shows the thumbnails via archives but not via this plugin.
    Any idea what could be wrong??

  • affa says:

    this plug in is great.

    however, i have a question / possible feature request.

    ISSUE 1:
    I am using this plug in to put up a list of ‘related’ posts for some main entries. So, for example, on my widget page, this plug in shows a list of related posts that are tagged ‘widget’. However, not everything has related posts… so I end up with the header Related Posts with nothing listed. Is there any way to ‘test’ to see that values will be returned? That way, I can use PHP to put in a header only if necessary.

    Or, as a secondary option, a parameter that allows me to put in a header (with appropriate tags) would work just as well.

    ISSUE 2:
    A huge, massive, awesome feature would be the ability to, via parameter, select ‘AND/OR’ for the tags.
    Right now, it’s defaulting to ‘OR’. That is, if tag is set to ‘bread, butter’ your plug in shows anything with the tag ‘bread’ or the tag ‘butter’. But what would be really useful is to be able to tell the plug in that we only want ‘bread’ AND ‘butter’ posts. So, a post would need both tags to qualify.

  • Jamie Curtis says:

    hi there, great plugin but I can’t see any thumbnail images …..I have set ‘featured images’ on my posts which show up fine in the blog but not in the plugin, any ideas? I have read the posts but they seem pretty old so I thought I’d ask and save time, thanks.
    jamie

  • Mark says:

    I don’t know why it’s not working, but I’ve placed the shortcode in a page exactly as you have shown it and it’s not showing anything. I’ve tried lots of different configurations of parameters.

    I’m running Thesis 1.81 and the latest WP.

    • Greg Mortimer says:

      Hi Mark,

      I have done exactly the same and having issues too – I also use Thesis 1.81 too. Have you been able to resolve this?

      Cheers,
      Greg

  • Hey Sudar,

    I’ve been using this plugin and it works great — of course now that I’ve got the hang of it, I’ve decided that the way I’m currently using tags would be better served using custom taxonomies and custom post types — do you have any plans to extend this logic to custom taxonomies and support custom post types?

    I’ve been looking, and haven’t’ found anything out there that does what you do so well for tags on taxonomies.

    Tx,

    Kendra

  • jason says:

    Hey.. for my theme i must add a custom field called thumb, then post.. this plugin would be great for me if the thumbnails would display.. can anyone tell me whats needed to be changed?

    • Sudar says:

      You have to modify the Plugin to fetch the thumbnail from the custom field. You have to make this change inside the template function.

  • Denise says:

    I am getting the same x’d out image that was mentioned above. I’m not sure how to fix it. The widget is in place and show thumbnails is selected.

  • denise says:

    I am having the same image issue. The widget is in place and the show thumbnail is selected but all I get is an x’ed out image.

  • Liz says:

    This plugin is great, but can you please release an update that puts to use the new WordPress featured image section. I tried making the tweak myself but it doesn’t work. The thumbnail issue seems to happen to a lot of people and this adjustment would help a lot of us!

    Thanks again for creating a great plugin!

  • jeannine says:

    Great plug-in; it’s so essential that it’s hard to believe this isn’t one of the standard WordPress widgets.

    One small problem: The plug-in seems to generate an empty h3 tag when it first begins to output the html (see below). Any idea why I’m getting this extra h3? It’s invisible but it does leave extra vertical space right before the widget.

    • jeannine says:

      Sorry, lost the code in my last post. It should read:

      Great plug-in; it’s so essential that it’s hard to believe this isn’t one of the standard WordPress widgets.

      One small problem: The plug-in seems to generate an empty h3 tag when it first begins to output the html (see below). Any idea why I’m getting this extra h3? It’s invisible but it does leave extra vertical space right before the widget.

      • jeannine says:

        One more try:

        Great plug-in; it’s so essential that it’s hard to believe this isn’t one of the standard WordPress widgets.

        One small problem: The plug-in seems to generate an empty h3 tag when it first begins to output the html (see below). Any idea why I’m getting this extra h3? It’s invisible but it does leave extra vertical space right before the widget.

        //

        • Sudar says:

          I checked the code and couldn’t see the extra h3. I guess it could be added by your theme as well. Can you share the url of your blog so that I can have a look at it?

  • Bonnie says:

    would it be super hard to add a “Exclude this tag” input??

    I’ve been looking for this all day and found only one article on it:
    http://www.jepson.no/how-to-exclude-specific-tag-from-query_posts/

    I love the way your plugin functions but I need it to exclude too.

    Mahalo in advance!

  • Ozias says:

    Hello. Great plugin. I have one question. I am using your plugin to list posts without displaying thumbnails, author, post date, post excerpt and post content. What I would like is to preface each post with a bullet, just like the html unordered list does by placing a small black circle prior to the list entry.

    Is this possible? It would make it easier to read the list in my case.

    Thank you again for such an excellent plugin.

  • Ruth Maude says:

    Great plugin! One issue I’m having is the continue reading is refreshing the blog page not going to the post. http://ahwilkens.com/about/auctions-blog/

    Thanks again for this plugin.

  • Kevin says:

    This looks like a great plugin, and it’s working except when I try to use the “Get tags and title from custom fields in current Page”. This option would be great but it’s not bringing anything up.

    Any ideas?

    Thanks,
    Kevin

  • Great plugin! Only issue i have is that it keeps refreshing while reading..

    • Sudar says:

      I am not sure, if I understand the issue you are facing. Can you explain in detail what do you mean by “Keeps refreshing while reading”?

  • Tomas says:

    Hello,

    thank you for this beautiful widget. But I have a problem. When I install the plugin, give tags for all my posts (normal wordpress tags) and give the widget in sidebar, I don’t see on the page anything, not even a headline of the widget. I read here something about custom fields, but I don’t see any instructions and I don’t know, how to make it. Can you help me, please?

    Thanks from Czech Republic

  • Mike says:

    Great plugin, thanks.

    I ran into two bugs

    Line 401:
    changed $order

    $order = ( strtolower( $instance['order_by'] ) === 'date' ) ? 'date' : 'title';

    to $order_by

    $order_by = ( strtolower( $instance['order_by'] ) === 'date' ) ? 'date' : 'title';

    Line 592:
    changed ‘orderby’

    $tag_posts = get_posts( array( 'numberposts' => $number, $tag_arg => $tag_id_array, 'orderby' => $order_by, 'order' => $order ) );

    to ‘order_by’

    $tag_posts = get_posts( array( 'numberposts' => $number, $tag_arg => $tag_id_array, 'order_by' => $order_by, 'order' => $order ) );
  • Nick says:

    Great job on the plugin – very handy. I’m using it on tolkienprofessor.com and would like to make my list of posts appear sorted by date but for some reason, when I select the data radio button and the sort order, it immediately blanks the buttons back out and ignores the change after clicking save. Any suggestions for getting this to work?

    • Sudar says:

      I fixed this bug in v2.2 of the Plugin. Upgrade to 2.2 and it should be fixed.

      • James says:

        if i have this type of code:

        if ($author) {
        $output .= __('Posted by: ', 'posts-by-tag') ;
        $output .= get_the_author_meta('display_name', $post->post_author) ;
        }

        if ($date) {
        $output .= __('on ', 'posts-by-tag');
        $output .= mysql2date(get_option('date_format'), $post->post_date) . ' at ' ;
        $output .= mysql2date(get_option('time_format'), $post->post_date) . ' ' ;

        how would i make this work:

        $output .= human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago ' ;

  • Nick says:

    Thanks so much for the quick reply – looks great now!

  • Jed says:

    When I upgraded to 2.2, the widget stopped sorting by title. It sorted by date only. I went back to the previous version and would sort by title again.

  • James says:

    Hi there,

    This plugin has allowed me to do some great things, but I’m crushed over one problem: When it displays the posts from the tag, if the post had a video embedded (like a youtube link) it doesn’t work, just shows the link. I’m hoping you can offer some code tweak to make it work as it’s critical to the way i am using it.

    Thanks for your hard work.

    • Tomas says:

      Hi, i think, Posts-by-Tag doesn’t support any iframes. I had on my site facebook ‘like button’ iframe and the plugin didn’t work. I would also like for a resolution.

      • James says:

        I really really hope one comes! I’m using this plug to display posts based on tags on specific posts and some of those tagged posts contain basic video links that are supported by WP (like http://www.youtube.com/videolink) which do get converted to iframe code. They are currently not recognised.

        • James says:

          i should explain properly as that might be confusing, the plugin does not convert the links to iframe code as wordpress would do so, this is what i meant. I don’t want anyone thinking i said iframe code is being shown by the plugin for me.

          • Sudar says:

            Guys,

            I am on a vacation (just got married last week 😉 ) I guess I know the reason why it is not working. Will fix it as soon as I am back. I am afraid you might have to wait for another week or so 🙁

      • James says:

        I found a solution, Tomas.

        Add the following code to your themes functions.php:

        ', ']]>', $content);
        return $content;
        } ?>

        and then goto the plugins “posts-by-tag.php”, find line 617 and change “get_the_content to “get_the_content_with_formatting”.

        It will now parse everything properly

  • Tomas says:

    Hi people,

    why this plugin changes the content of my site? When I in the menu sorted by the tag click on a link of another article, the page reloads, but only the title changes, the content remains the same. Sometimes when I go to an article appears to me the contents of a completely different article. This is very scary and makes my site inoperable.

    Thanks for solution

  • vicktor says:

    The shortcode doesnt work on WP 3.3.1

  • James says:

    Hi there,

    First of all thank you for the excellent plugin.

    However, there is an issue with using this plugin and the “Ozh’ Better Feed” plugin.

    When I enable “Posts By Tag” then my RSS is not longer truncated at , it shows the entire article instead.

    Help!

  • James says:

    does it support custom post types?

    For example, i have made a custom post type and put a tag on it, tried using the tag in the shortcode but nothing displayed.

  • How can I disable the cache?

    I am using User Access Manager plugin:

    http://www.gm-alex.de/projects/wordpress/plugins/user-access-manager/

    UAM is handling user access group, and as a consequence of that the cache is not user group based, it does not work properly.

  • max says:

    Have you planned to add the function “show random post”?

  • zed says:

    I’m trying to use the template code to include a list in my custom sidebar. The following is the code I tried. Can you tell me where I’m going wrong?

    Thanks

  • zed says:

    seems the code got lost there:

    posts_by_tag($tag = “most-popular”, $number = “10”, $exclude = FALSE, $excerpt = FALSE, $thumbnail = FALSE, $order_by = “date”, $order = “desc”, author = FALSE, date = FALSE, $content = FALSE, $exclude_current_post = FALSE, $tag_links = FALSE);

  • Jed says:

    v2.1.1 is the last version that will sort by title in a widget on my site. All subsequent versions sort only by date regardless of a widget’s settings. I would love to upgrade to v2.4, but I must be able to sort by title. Help?

  • kera says:

    this is a GREAT and USEFUL plugin… thank you.
    The only thing i’d change is the ability to randomize the posts so the same 12 (or 3 or 8 or 20) don’t show up all the time.

  • Hi, I’d like to create a page on our blog, and then list all posts with a certain tag on that page. Will this plugin allow me to do that?

  • Matt says:

    Hi, Really like your plugin. I’d like to see the ability to keep the related posts the same category as the matching post.

    For instance:

    If the main post has a category of “restaurants” and is a review about a restaurant, the related posts within the widget would find related posts like normal, but would be restricted to the “restaurants” category of posts.

    If there is already a way to do this, please let me know 🙂

    P.S. Do you have a donate button? 🙂

    • Sudar says:

      Matt,

      Nice to know that you like my Plugin. Right now you can do it, if both *restaurants* and *review* are tags, instead of categories.

      You can either convert your categories into tags or wait for me to implement categories as well 🙂

      I don’t have a donate button, but there are ways to say thank you to me 🙂

  • BeeJayEff says:

    I really like this plug-in, just one minor problem using the shortcode. If I have date=true then it seems to add a couple of blank lines before the date and none after, so that the date appears immediately before the title of the next post, so that it looks like the date belongs to the next post. I would far prefer no blank lines before and a couple after the date if possible.

  • Plugin this very absolute.me already installed on web of me and it show very đẹp.Thank has chia sẻ

  • Emily says:

    Great plugin. Any chance you could add a qualifier “since=date” ???

    Or have the qualifier “date-range=” so that only posts since a certain date are shown… (using this qualifier there could be values of “latest” and “earliest” as well as actual date values so that posts could be retrieved since a certain date or before a certain date….

    • Sudar says:

      It’s there in my todo list. Will try to implement it when I get some free time or if someone is ready to sponsor the development 🙂

      • Mirluin says:

        I’m interested in sponsoring the development if the plugin will support WP 3.7.1 and upcoming 3.8
        I also need to use this on custom post types instead of standard posts. Please contact me.

  • TeraS says:

    It is possible to have the posts listed in alphabetical order rather than by date?

  • phong says:

    I would like a feature which would allow to change the size of the thumbnail image. Thanks.

  • Andrew Walsh says:

    Thanks so much for this plugin! It’s quite flexible and just what I was looking for. I also came here to ask about styling the CSS, but see that you have already helpfully explained it. Keep up the great work!

  • gameraji75 says:

    only the latest month appears (ex: [posts-by-tag tags = “November 05 – 20 2012 (Vol26_No21)”)
    this “tag” works even if i rename it but the previous tag doesn’t. (ex: [posts-by-tag tags = "Oct 20 – Nov 05 2012 (Vol26_No20)"])

  • mbb says:

    Is it possible to put the Post Title before the thumbnail in the “Posts by Tag” widget? Thanks!

  • Martin says:

    Hi,

    is it possible to integrate this code to show the links from articles in a table instead of a list?

    ID, ‘ort_ground’, true);
    $liga_jahreseite = get_post_meta($post->ID, ‘liga_jahreseite’, true);
    $zuschauer = get_post_meta($post->ID, ‘zuschauer’, true);
    $ergebnis = get_post_meta($post->ID, ‘ergebnis’, true);
    ?>

    <a id="post-” href=”” rel=”bookmark” title=” ””>
    ID, $key, true); ?>
    ID, $key, true); ?>
    ID, $key, true); ?>
    ID, $key, true); ?>

  • Drew Turnbow says:

    I’m using the latest version of wordpress (3.5), when someone leaves a comment on a page with a related post, the comment gets assigned to the wrong post. (comment shows up on the related post instead of the one where the comment was done)

    I tried to make a comment on this page: clonescriptnews.com/2012/12/pintastic-pinterest-clone/

    but it showed up on this page: clonescriptnews.com/2012/12/pintastic-video-demonstration/

  • olomouc says:

    Hi,

    where I must edit the code of your plugin, if I use the shortcode-option in a post ([posts-by-tag tags = "tag-xyz"]) and want to show some extra post meta in the list of each listed post?

    Greetings

    olomouc

    • Sudar says:

      Check the shortcode handler function. You might have to edit it there.

      • olomouc says:

        Hi Sudar,

        I tried to integrade this piece of code $key=”ort_ground”; echo get_post_meta($post->ID, $key, true); into the shortcode handler function. But unfortunately the plugin does’nt work anymore ore the content of the mekakay wasn’t shown.

        Do you now the solution?

        Greetings

        olomouc

  • jim says:

    Possible to make it pull the comment count for each post, too? I would mod the code to add this if you could share the method

  • jim says:

    Sudar, you added

    – Added the option to exclude current post/page

    which gave me the idea – would it be possible to make an option to exclude post by id. I have a scenario where i’ll need to exclude a certain post and call it up somewhere else on the same page.

    • Sudar says:

      That’s a nice idea. Will add it to the TODO list.

      • Bor says:

        Hi! Have you managed to add the option to exclude certain posts by ID? Would really need it right now. I have placed the code for posts by tags into my page.php and single.php template, but would like to disable it on one particular post.
        Thanks!

        • Sudar says:

          @Bor,

          What the other person requested is different. He wanted an option to exclude certain posts from the list of posts that are getting returned.

          In your usecase you can just place the call to my template function within an if condition so that it is not called for posts/pages that you don’t want it to be called.

  • jim says:

    Thanks Sudar. This will surely come in handy for me when it’s implemented.

  • Hi, Sudar – thanks so much for the great plugin! I posted this to the WordPress forums but thought maybe I could ask here as well. I’m experiencing some issues with the Posts By Tag plugin when using content=”true”. It’s been working great for months, then suddenly – I think it was either with the last plugin update, or the WordPress 3.5 update, it suddenly started making the page load completely blank.

    You can see it here: http://denverbargains.com/denver-milk-prices/

    Here is a sample of what’s on that page:

    [posts-by-tag tags="milk prices" number="15" thumbnail="false" order_by ="date" content="true"]

    When I remove content=”true”, the page loads fine. It started happening when I updated the plugin in the last week or two; unfortunately, I’m not sure if it’s a plugin or WordPress issue since I updated both around the same time. I’m using the same plugin on a different site with the same issue.

    Any idea what the issue might be?

    • Sudar says:

      That’s quite strange.

      Can you find out if there are any errors in the PHP error log file?

      • Here are a couple of mentions of the plugin in the error_log:

        [12-Jan-2013 23:23:11] PHP Fatal error: Out of memory (allocated 33292288) (tried to allocate 30720 bytes) in /home/jeremy24/public_html/denverbargains.com/wp-content/plugins/posts-by-tag/posts-by-tag.php on line 428

        [06-Jan-2013 04:15:34] PHP Fatal error: Out of memory (allocated 32768000) (tried to allocate 7680 bytes) in /home/jeremy24/public_html/denverbargains.com/wp-content/plugins/posts-by-tag/posts-by-tag.php on line 177

        There are a few other mentions but not a ton.

        • Sudar says:

          I have fixed this bug in the latest version of the Plugin. Thanks for reporting it. Can you try out the latest version and let me know if you are still facing the same issue?

  • Jeremy says:

    Upgraded to WP 3.5 and now my ad hoc post to tags only show [suffusion-widgets id=’1′] on the page they used to display tagged pages. Please help?

    • Sudar says:

      Which version of Plugin you are using?

      • Jeremy says:

        I am using version 2.7.2.

        • Sudar says:

          @jeremy,

          I just released v2.7.3 yesterday, which fixed a major bug.

          I guess this got fixed in v2.7.3

          Can you try v2.7.3 and let me know if you are still facing this issue?

          • Jeremy says:

            Still having issues. Updated and it’s not working. Post by tag will work in sidebar 1 but not Ad HOC for some reason. Please help?

            • Sudar says:

              Hmm this is strange. Can you post the exact shortcode you are using in your blog? I am assuming that you mean shortcodes when you say Ad Hoc, is that correct as well?

              • Jeremy says:

                Widget logic is

                is_page(‘2006-07′)

                Tag is

                2006-07

                Marked box to show post excerpt

                Even tried typing the code on the 2006-07 page

                [suffusion-widgets id=’1’] in text and edit but nothing shows up when I save the widget

                • Sudar says:

                  Are you using some other Plugin to control widgets?

                  Also the shortcode for my Plugin is [Posts-By-Tag] not [suffusion-widgets id=’1′]

                  PS: I am still not sure whether I have completely understood your problem. Can you explain in detail what you are trying to do, how you are doing it and what is not working? Also if you can share the link of the page it would be useful.

                  • Jeremy says:

                    This is the webpage. http://chsgirlssoccer.org/past-seasons/2008-09/. The posts by tags worked before I updated to the current wordpress version and plugin. I don’t remember what previous version I was using but It was a year old. To my knowledge I have no other plugins to control widgets. What I am trying to do is organize pages tagged by years on their separate page in a drop down menu. I have the a page labled 2008-09. I went to AD HOC and opened the box. Clicked and dragged post by tag. Filled in tags=2008-09 marked box=show post excerpt. Then I used the widget logic is_page(‘2008-09′)
                    What worked before was a list of links to the webpages would exsist on the webpage. Now it just says [suffusion-widgets id=’1’]
                    Not sure where to go from here. Seems like the post by tag is not working at all. However if I use sidebar 1 instead of Ad HOC the widget works.

  • Jeremy says:

    Ad Hoc is Ad Hoc Widgets 1 This is an ad-hoc widget area that can be invoked with the short code [suffusion-widgets id=’1′]. It is underneath the sidebar 1 toward the middle on the widgets page.

  • Andrew McCartney says:

    Sudar, first a big THANK YOU for this amazing plugin. I was looking for a widget that lists a tag’s posts in alphabetical order and this does the job! I can get the widget displayed on all pages just fine by adding it as a widget to the side column. One thing I don’t understand:

    When I’m adding a new post, there is a section called “Posts by Tags Page Fields”. My assumption is that tag(s) I select here will appear as a side widget on that post’s page only. If so, EXCELLENT! However, I have entered a tag and given the widget a title but it does not appear on the post’s page. I am using the following theme:
    http://themeforest.net/item/zend-responsive-blogmagazine-wordpress-theme/3139105

    Do I have to edit the template?

    • Sudar says:

      Your assumption is correct. If you enter a tag and title in the add/edit post page, then the Plugin will pick up tags from there only for that particular page/post.

      The only other thing you have to do is that in the widgets page (Appearance->Widgets) you have to choose the option “Get tags and title from custom fields. You need to set the custom field for each post/page”. You don’t have to edit the template.

      And nice to know that you like my Plugin.

  • Hi,

    Is there a way to specify the identified tag-name in the title when using the widget? I would like my widget to have a title similar to “More posts containing some_tag_name”, where “some_tag_name” is the name of the tag/s found in the current post.

    Thanks for a great plugin.

  • Risa says:

    I’m using the short code:

    [posts-by-tag tags = "tagname" number = "10" order_by = "title" order = "asc"]

    which is working great. However, when the tag is more than one word with a dash between each word, it doesn’t work:

    [posts-by-tag tags = "tag-name" number = "10" order_by = "title" order = "asc"]

    The only change is the dash that causes the list to not show. Any help would be appreciated! Thanks.

    • Sudar says:

      I am not sure why it is not working. Adding a dash in the tag name shouldn’t cause any problem.

      Are you sure that the slug of the tag in your blog has a dash in it as well?

      • Risa says:

        Yes, I’ve double checked the tag names and that there are indeed posts in each. It’s for every tag that is two words (I’ve checked 3 different two word tags at this point). That’s the only difference between it working and not working…

  • René says:

    Hi Sudar, thanks for the great Plugin… which I can’t get to work! 😉
    I’m trying to display the Posts with excerpt and Thumbnail using Template Tags and I just can’t figure out the correct syntax (Yes, I’m a PHP-N00b ;)… I tried 12836 Variations of calling the Function with Parameters, but it only ONLY works when I dont give any Parameters at all…

    Here are some of my Variations for your Amusement:
    posts_by_tag(”,array(20,$exclude=TRUE,$excerpt=TRUE,$thumbnail=TRUE));
    posts_by_tag(”,array(20,TRUE,TRUE,TRUE));
    posts_by_tag(”,’$excerpt=true,$thumbnail=true’);
    posts_by_tag(”,array(‘$excerpt=true’, ‘$thumbnail=true’));
    posts_by_tag(”,array(‘excerpt=>true’, ‘thumbnail=>true’));

    Please man, I just need the correct PHP-Syntax, I can figure out the Rest on my own…

    Also: Would be nice to have a piece of example-Code in the ReadMe, I’m searching for examples since 3 hours or so… nothing…

    • Sudar says:

      I tried 12836 Variations of calling the Function with Parameters, but it only ONLY works when I dont give any Parameters at all…

      That is because all your 12836 variations were wrong. All you should have done was to just do a google search for PHP arrays and the first search result would have shown you the correct syntax.

      In case if you are still not able to figure out, you just need to pass them as a PHP array. Some thing like below.

      posts_by_tag("tags", array('excerpt' => TRUE, 'thumbnail' => TRUE);

      You can add more options. The complete list of options that are supported are available in the readme file as well as above.

      .. and ofcourse you have to put them inside PHP tags < ?php ?>

  • anhmjnanhmjn says:

    How to show posts in Random ?

  • bozoemo says:

    How can we still show at least the title when no post correspond to tag name ?

    • Sudar says:

      Do you want to show the tile, even if the posts are not found?

      How are you using the Plugin? By shortcode, template function or through widget?

  • MMO says:

    What version of PHP are you using?

  • Esther says:

    Hi,
    I couldn’t make it work for pages with custom tag.
    I’ve read few post about but I’m using wp 3.5.1 and does not show nothing.
    🙁

  • sdfg says:

    This plugin has gone to complete shit this past month. Ever since the new WP update. The widgets take days to start showing up, and even then, they don’t list all the tagged posts, only one or 2. Do you intend to fix this, or do I need to go find a working plug-in?

    • Sudar says:

      This plugin has gone to complete shit this past month

      If you are not going to tell me what is not working, it may not be possible for me to fix it.

      Do you intend to fix this, or do I need to go find a working plug-in?

      If you can drop this attitude and let me know what is not working, then I am willing to fix it. But if you want to just continue with this attitude and want me to guess what is not working, then my best wishes for your search in finding an alternative.

  • Jamie says:

    Hi,
    I need some help configuring the plug-in. I’ve installed and activated the plug-in.
    I see the widget and I see the Post By Page Fileds in the posts page.
    I’ve set the Widget Title to test, widget tags to test and the slug to test.

    in the widgets page i’ve put the Post by Tag plug-in in the Secondary Widget Area.

    The following attributes are set: (I’ve included only checked)
    Title – test
    Tags – test
    Get tags from current Post – checked
    Get tags and title from custom fields. You need to set the custom field for each post/page. – checked
    Show post date – checked
    Disable Cache – checked

    I’ve tried a variety of these attributes as checked and unchecked to see if I could get
    something to show up. But no title or post shows up on the website. I am probably
    doing something incorrectly, but I just can’t figure it out. I’ve checked serval forums and I think
    I am following the configuration correctly and it should be fairly strait forward.

    I’m running:
    WordPress 3.5.2.
    Twenty Ten 1.5

    Any help would be apprieciated.

    • Sudar says:

      Where do you want the Plugin to pick up the tags from? If you are going to manually provide the tags, then uncheck the following checkboxes and set the title and tags in the widget itself.

      • Get tags from current Post
      • Get tags and title from custom fields. You need to set the custom field for each post/page.

      Also do you have posts assigned to the tag that you are trying?

  • Anonymous says:

    Thanks for the response. That worked right away 🙂
    All I had to do was remove the two attributes that were checked as you directed. Thanks for the speedy help.

  • Diana says:

    Hello
    Thanks for this great post…keep writing

  • Chad Jackson says:

    Hey there. I am trying to use this plugin on the following page: http://www.testblog1234.com/the-2013-3d-collaboration-and-interoperability-report-published/.

    My problem is in the formatting. The thumbnail for the second post isn’t showing up, even though it has been assigned.

    Any help would be greatly appreciated.

  • Alex says:

    Hey thanks for this great plugin. I just want to ask if it is possible to just only show 1 whole content post (well formatted post) and then just add next and previous button for the other post? I’m looking to make my site like this one. I hope you can help.

  • Diana says:

    Great Post !!
    Thank you

  • ilp says:

    Very nice & usefull.
    I’m looking for how to have this ” 10, ‘excerpts’ => TRUE, ‘thumbnail’ => TRUE ); ?>” but where ‘test’ is not fixed but extract key word from the current post & how to display the title with the keyword in it. Is it possible ?

  • James Orr says:

    You rock! I really do appreciate this plugin… it is what I use to keep my entire checklist system for real estate agents and real estate investors organized on my wordpress blog. Thank you!

    I do have two questions:

    1. Is it possible that the order_by=”random” feature is not working? The reason I ask is I am unable to see the order change ever when I use that. Does it always use the same random ones?

    2. Have you considered having it so that we can do tag1 AND tag2 versus tag1 OR tag2? The reason I ask is it might be helpful for me to be able to do posts that are tagged “Book” and “Marketing” to find the posts that are tagged with both and not either to do much more specific lists of posts.

    Thanks again!

    James

    • Sudar says:

      1. Is it possible that the order_by=”random” feature is not working? The reason I ask is I am unable to see the order change ever when I use that. Does it always use the same random ones?

      The posts will be retrieve in random order, but the results will be cached. In order to be truly random, you might have to disable cache.

      2. Have you considered having it so that we can do tag1 AND tag2 versus tag1 OR tag2? The reason I ask is it might be helpful for me to be able to do posts that are tagged “Book” and “Marketing” to find the posts that are tagged with both and not either to do much more specific lists of posts.

      It is there in my todo list. Will add it when I get some free time or if someone sponsors development time.

      You rock! I really do appreciate this plugin… it is what I use to keep my entire checklist system for real estate agents and real estate investors organized on my wordpress blog. Thank you!

      Nice to know that you really like it. I would appreciate if you can leave a review for it at http://wordpress.org/support/view/plugin-reviews/posts-by-tag

  • Hemant says:

    Hi Sudar,

    Your article is really helpful, thanks for writing. I am looking forward to read more articles in future. Keep writing!!! cheers.

  • Does this work for forum posts? I have Simple:press forums on my WordPress site and love the idea of being able to display different, recent forum posts based upon tag on various pages of my site

    • Sudar says:

      Frankly, I have not tried my plugin on forumn posts. But if the forumn posts use WordPress default tag (not custom taxonomy) then it should work.

      Is Simple:press similar to BPress?

  • Steve says:

    FYI – this wasn’t working for me at first, and then I realized that I needed to type the tag and wait for it to dynamically match it in the text box before moving on to filling out the rest of the form and saving it. It was short, so I wasn’t in the textbox long enough – the tag has a comma after once it’s recognized. Hopefully that helps someone – works great, tx for the contribution!

  • Great plugin, exactly what i was looking for! I’m struggling to get it to work with the custom field though.

    I’m using: true)); ?> and nothing is displayed. Adding the Tag manually in the php code works perfect. Any suggetions?

    Also I noticed, using the tag-autocomplete in the “Posts by Tag Fields” Section of the “Edit post” page, fills the selected tag in the field multiple times.

    I’m using WordPress 3.9.1.

    Keep up the great work!

  • I am using your plugin and it works great. I am trying to add a custom feature to your plugin by allowing a tooltip type content to show on hover when scrolling over a list of posts by tag. I was hoping you might be able to help me figure out the best way to integrate this code.

    In the class-posts-by-tag-util.php file I see where the list is created. My thoughts are to create the tooltip using wordpress hooks and simply hide it with CSS and display on hover. What do you think the best way to insert the following code would be?

    <div id="post-” class=”post-flyout”>

    <a href="” title=”” rel=”bookmark”>
    By on

    <!– #post- –>

    An example of the kind of function I want this to have would be on http://beforeitsnews.com

    Let me know if you’d need more info.

    Thanks,
    Pierce

  • wyrd says:

    Hi, I want to create a page with posts that are tagged with a specific keyword. I ca generate this feed using the plugin but I do not know php and have no idea how to give the page the same styles that the posts normally have on a list. Can anyone help?

    • Sudar says:

      Essentially you need to change the display styles using CSS. Since you mentioned that you don’t know either PHP or CSS, I would strongly suggest you to get hold of someone who can do it for you or hire a freelancer who can do this for you.

  • nhbergh says:

    Your plugin does exactly what I want – display posts with exact tag matches.

    http://globalwaterdances.org/gwd-performances/2011-performances/berlin-germany-2011/

    I have not been successful in figuring out the exact shortcode to exclude the CURRENT POST from the display.

    I understood that the default was to exclude current post from display. I tried added to the shortcode this way:

    [posts-by-tag tags="berlin" tag-from-post="false"]

    But that did not work either.

    Hope you can help. Thank you.

    • Sudar says:

      You need to use the exclude_current_post attribute.

      So the final shortcode will look like this

      [posts-by-tag tags="berlin" exclude_current_post="true"]

      • nhbergh says:

        Thank you so much for your help! I found that your widget is probably what I will use, instead of the short code, but I am glad to know what I was doing wrong.

  • Pablo says:

    Hi,
    Is there any possibility to show pages by tag? I want to do the same that I can do with your pluging, but instead of using post I want to use pages.

    • Sudar says:

      Unfortunately there are no options to do this. Right now the only possibility by which we can do this is to modify the plugin source file directly.

  • dream teller says:

    Thank you so much for your help!

  • Richard says:

    Is it possible to make the LI title to LI title for SEO reason?

    Great plugin!
    Thanks,
    Richard

  • Jay says:

    a nitpick , 10, ‘excerpts’ => TRUE, ‘thumbnail’ => TRUE ); ?>

    should be

    10, ‘excerpts’ => TRUE, ‘thumbnail’ => TRUE )); ?>

    the extra ‘)’

  • wahab says:

    great plugin…
    i need little help. please tell me how to change the size of images in short code and php code?

  • Michael says:

    Hi,

    I’m a little bit confused… The plugin works in the first place, but what I’m looking for is to show posts, which fit to *all* the tags.

    For example

    posts-by-tag tags = “tag1, tag2”

    shows all posts, that either have tag1 or tag2 or both. But I only would like to see the posts with tag1 AND tag2.

    Is that possible anyhow?

    Regards
    Michael

  • khuong says:

    i’m bad code so you can example css text align with images

    http://imgur.com/XOurkSx

    thank

  • Just updated my Posts By Tag WordPress Plugin to v1.5. Fixed some typos and added Dutch translations. Optional updat

  • i’m bad code so you can example css text align with images

  • great plugin…
    i need little help. please tell me how to change the size of images in short code and php code?

  • The code you pasted got messed up.

    Can you post the code in either gist or pastebin and post a link here?

  • Unfortunately it is not possible right now.

  • a nitpick , 10, ‘excerpts’ => TRUE, ‘thumbnail’ => TRUE ); ?>

    should be

    10, ‘excerpts’ => TRUE, ‘thumbnail’ => TRUE )); ?>

    the extra ‘)’

  • Matt says:

    Great work with the development of this plugin!

    I’m curious if you have a timeline for the custom post types as that’s specifically what I would be using it for. Looks like it’s a common request so I’m happy to support you financially to help push that TO-DO to the top of the list 🙂

    Cheers,
    Matt

    • Sudar says:

      Hello Matt,

      Right now I can’t give a timeline since there are so many things that are waiting for my attention unfortunately..

      Of course if you are willing to sponsor the development then I can move it up my todo list 🙂

  • Herm says:

    This plugin is exactly what I need. First it worked good. But when I use a tag that is asigned to more than one post I get a fatal error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /home/vhosting/aa/vhost0070773/domains/necker.nl/htdocs/www/wp-includes/query.php on line 2490

    Do you know how this can happen?

    • Sudar says:

      The error message means that WordPress has run out of memory.

      Any idea how much RAM is available to WordPress and how many posts you have?

  • cjjr82 says:

    First, thank you for building this plug-in. This seems to be exactly what I have been looking for to put on my site, however it is not working for me using ‘Posts by Tag Page Fields’ option. I installed the plugin through WordPress and am using WP version 4.8.1.
    I select ‘Get tags and title from custom fields’, and set those, however it just grabs the last posts that were posted each time. It doesn’t matter what tag I enter on the page, it always just shows the last posts made on the site.
    Any suggestions?

    Thanks!!

    • Sudar says:

      Hello,

      Nice to know that you like my plugin.

      Please let me know how you are using the plugin (shortcode, template function or widget) and give me the exact values that you have configured.

  • Doli Gohel says:

    Can you help me to How to display tags in drop down box?

  • Mart Withers says:

    Can the post tags plugin use AND combinations (for example, it would only displays the posts that are tagged with both tags, not one or the other tag)?

  • Doli Gohel says:

    how to display all the tags in drop down menu in widget area in wp-admin?

  • Anders says:

    Hi my friend,

    I am looking for the examples of shortcodes for the “posts by tags” plugin but i only get linked to this page, which is empty except for several hundred comments. Any idea abou where that page went?

    I also found a bug in the plugin i think. When I have tags with Swedish characters like Å,Ä,Ö,å,ä,ö it doesät show in the plugin. If i name the tags like “andtarm” instead of “ändtarm” then they work, but that is a little uggly in Swedish.

    Thanks for a great plugin btw!

  • Great plugin. Thanks to the developers of this plugin. I was able to display a list of posts by tags on certain pages. It did the work perfectly. I will definitely give it a 5 start rating. Thanks for sharing.

  • Manu says:

    Does these plugin support latest version wordpress?

  • Đức Mu says:

    i canot see any shorcode of post tag, bro?

  • perrogeek says:

    anyway to add X amount of related posts tags into my blg posts? by default shows like 5 related posts.

    Im using shortcodes

    please help!

  • Kelly says:

    Very informative blog post.

  • Naijachoice says:

    Just downloaded the plugin, it work fine

  • Naijadiamond says:

    Thanks for the great share. It will really helpful.
    I really appreciate your effort in crafting this post.

    Have a good day ahead.

  • John says:

    How about showing ALL the posts based on specific tag on article (post)?

  • Plus Naija says:

    Thanks for this comprehensive info. it top Notch

    from: Heartlandngr

  • Dirk says:

    maybe here it is better to ask: will there be an update? Last one is 2 years ago. Can also be paid, because is the only one on the market. Would be nice.

  • Steve says:

    Just downloaded your plugin it’s amazing! Question, when using shortcodes, how do I access all the options like below. What the attribute name for each?

    The set of tags from where posts should be selected (or excluded)
    The number of posts to be displayed.
    Whether to pick the tags from current post
    Whether to pick the tags from current post slug
    Whether to pick the tags from current post’s custom field
    Option to enable post excerpts to be displayed with post titles.
    Option to display post thumbnail if present.
    Option to display post author.
    Option to display post date.
    Option to display post content.
    Choose the order in which the posts should be displayed.
    Option to exclude current post/page.
    Option to specify the target attribute for links
    Option to display links to tag archive pages.
    Option to disable the cache if needed.
    Option to enable Google Analytics tracking on the links

  • cant find other option please am trying to add post per page not working

  • Tony says:

    Nice article

5 Tweetbacks so far

37 Trackbacks/Pingbacks so far

Leave a Reply to Hercules Cancel reply

Your email address will not be published. Required fields are marked *