Hello! First of all, thank you for your very useful plugin! It is very helpful, however, it makes my RankMath XML sitemap inaccessible, also to Google’s Search Console. When accessing the sitemap for my posts, for example, it produces this warning:
<b>Warning</b>: Attempt to read property “ID” on null in <b>/path-to-my-installation/wp-content/plugins/posts-by-tag/include/class-posts-by-tag-util.php</b> on line <b>27</b><br />
^
It would be awesome if you had a solution for this. Thank you!
]]>Hello Sudar, do you intend to update the plugin shortly (wp 6 and PHP8) ?
thanks
]]>when attempting to drag the posts-by-tag widget into a widget…then attempting to save, the admin-ajax call throws a 502 bad gateway. this only happens in my staging environment which has been upgraded to php8.1.2. it still appears to work as designed on servers running php7.4.25
the following errors are logged by the server…
PHP Warning: Undefined array key “current_tags” in /var/www/digest/wp-content/plugins/posts-by-tag/include/class-tagwidget.php on line 114
PHP Warning: Undefined array key “current_page_tags” in /var/www/digest/wp-content/plugins/posts-by-tag/include/class-tagwidget.php on line 115
…
…
PHP Warning: Undefined variable $disable in /var/www/digest/wp-content/plugins/posts-by-tag/include/class-tagwidget.php on line 385
any ideas? would like to be able to upgrade all my servers. thanks…
]]>Will this plugin allow me to display posts by tag on a page? For example, I have a number of posts tagged with “Recruitment and Retention” which I’d like to display on a full width page. Would there be a short code I can use to accomplish this?
Similarly, with categories?
Thnx
]]>Hi, I’m getting the following warnings when “Disable cache” option is enabled: https://i.imgur.com/8oPkZeF.jpg
Can you please take a look at it? I’m on WP 5.8.3 and PHP 8.0
Best,
Kacper
Hello Sir,
Thank you very much for this wonder plugin. I have two questions
1. How do I change the bullet list to numbered list
2. How do I set the image with inside a short code.
I tried custom css but it didn’t work, when I set the image width to 40px all the images on my website changed to 40px even the image on my posts.
Hi-
I just installed your plugin. Using the shortcode to display a list of posts inline. Seems to be working, so thanks for that. However, it’s only showing 5 posts, which I’m guessing is the default max. Is there a shortcode attribute that I can set to all or a significantly higher enough number so that it shows all posts?
thanks,
Andrew
]]>Hi,
we are running Version 3.2
When we set wp_debug to “true” in wp-config and run your plugin with php 7.2 ,
We get the following error message at the backend and frontend:
Deprecated: Function create_function() is deprecated in /mysite.com/public_html/wp-content/plugins/posts-by-tag/posts-by-tag.php on line 375
Could you please let us know how we can fix this error?
]]>Hi, I am using the ‘Get tags and title from custom fields’ on my events, all News post that are linked by tag will show up, but when I create a new News post it will not show up in my event unless I clone the event. Is there something like a date in your plugin code stopping the tags linking through?
]]>Hello Sudar,
Thank you so much for creating this very useful plug-in! I just have a quick question. When we include the author name, the widget gives us the post title and then says “Posted by:” and then the author name. I would like to remove the word “posted” so that the byline style matches the site, and also the colon. : Is there a way to remove those? Thank you for your consideration.
]]>Greetings! Thanks for a nice plugin. It’s been working well for some time.
Today, though, I added and tagged a post that should be showing up in the widget — but it’s not there. And the “Exclude current post/page” setting doesn’t seem to be working, either. I checked on older pages that have the widget and they are showing the current post.
I tried clearing the cache and also increasing the number of posts to show, but neither helped. I also checked the tag to make sure it wasn’t spelled incorrectly.
The widget seems stuck, somehow.
Is there anything I can do?
Thanks for your advice.
]]>Hello,
Your plugin looks nice, even though I guess I will not use it because at least one thing is missing.
1) Multilang (WPML) sites: when customizing the widget, I cannot select a specific language or base-URL. What happens is that articles from other languages matching the tag that are displayed.
2) It would be great to be able to have more freedom concerning the tags for the matching criteria. For example have a case insensitive option and/or something like wildcards like word* in order to match “word”, but also “word123” or “word 123″…
BW
]]>This plugin is just what I need. problem is I have added a widget, also tried the shortcode and absolutely nothing shows, can anyone please help?
]]>Hiya
Sorry if there’s already a post about this but I was unable to find it.
I’d like to create two different sets of posts. One using the following shortcode: [posts-by-tag tags = “newsletter”] and then another to include a list of posts excluding the tag “newsletter”.
Is this possible?
Regards
Nick
The [posts-by-tag tags = “”] shortcode is not functioning anymore on my website…. The whole page is shown empty when using this code….
]]>Is there a way I can tweak this to pull from Portfolio (which has tags) rather than Posts?
]]>i’m bad code so you can example css, text align with images
thank
]]>I would like to remove the Posted By and Posted On text for the Author and Date options, as well as change the tag from <small> to <p>. Is there a way to do this without hacking the plugin directly?
Thanks!
]]>Maybe someone has asked this before but I can’t find it anyway. I am not very good at php yet and I need a quick and easy way to pull posts that have specific tags and display them on a different page than the post page, but have the same format including content and all of the works. Is there a way with this plugin to do this?
]]>I have 2 quick questions.
How do I to display a list of posts that include all the tags that I specify (rather than any of the tags). For example, if I wish to display posts that contained red and blue and yellow tags (rather than red or blue or yellow).
[posts-by-tag tags = “red, blue, yellow” order_by =”title” order=”asc”]
I guess I could do a work around by creating a single tag like ‘red-blue-yellow’…
My second question is, how do I set the number of posts to be returned to be all. The workaround I’m using is to set number to be 100 but just wondering if there was a better way?
[posts-by-tag tags = “red, blue, yellow” order_by =”title” order=”asc” number=”100″]
]]>I want to use this plugin for a custom php page, when i try to load it i get a 500 server error. I have added require(“/plugins/posts-by-tag/posts-by-tag.php”); but this still doesn’t work. any ideas are very welcome!!
Thanks
]]>Hi I can’t get this to work.
With “get tags from current post” it takes all tags from the current post and looks up all posts that have at least one of those tags and list those posts, right?
If so, it does not do this at all. For me it only lists the current post and that’s it.
May it is not compatible with 4.3.x?
Hi,
I want to show the widget for certain posts, in which I have set the custom fields. But I do not want to show the widget otherwise. Is that possible? When I check the custom fields setting and left everything else empty on widget settings then the widget is being shown on other pages, too, just without title.
]]>I am using a widget of my theme to display a number of post selected by category on the site’s homepage.
I have slightly modified the code to include the functionality of posts_by_tag to display a number of post related to the first article.
My issue is I do not know how to combine the function
$posttags = get_the_tags();
with
posts_by_tag($tags);
What I would like to do is to get the tag of the post that is being processed using the get_the_tags function and put it as string variable into the post_by_tag function.
I tried few combinations but it did not work , probably I am missing something minor.
Any help would be appreciated
Hi this plugin shows only Links of posts, I want to show links of only pages not post.
]]>Hi,
I installed this interesting plugin and I made some improvements like adding a css class to “more tag link” to highlight current_tag.
I edited get_tag_more_links in this way but strangely it only highlights first tag element
public static function get_tag_more_links( $tags, $prefix = 'More posts: ' ) {
global $wp_query;
$tag_array = array();
$output = '';
if ($tags == '') {
// if tags is empty then take from current posts
if (is_single()) {
$tag_array = wp_get_post_tags($wp_query->post->ID);
}
} else {
$tag_array = explode(",", $tags);
}
if (count($tag_array) > 0) {
# ADDED CODE
//$current_tag = single_tag_title("", false);
$current_tag =get_query_var('tag');
//$output = '<p>' . $prefix;
$output = '<ul class = "posts-by-tag-list">';
foreach ($tag_array as $tag) {
$tag_name = $tag;
if (is_object($tag)) {
$tag_name = $tag->name;
}
$class = 'class="posts-by-tag-item"';
if( $tag_name == $current_tag )
$class = 'class="posts-by-tag-item current_tag_item"';
$output .= '<li ' .$class. '>';
$output .= self::get_tag_more_link( $tag_name );
$output .= '</li>';
}
//$output .= '</p>';
$output .= '</ul>';
}
return $output;
}
I have 2 tags and only first tag is highlighted when I click on it.
Why?
Is it possible to set Posts By Tag ALSO by Page ?
]]>Hi! We have a curious problem: We use the “posts by tag” sidebar widget on pages and posts, but on some pages it is not working correctly.
They are all setup exactly the same and all use the same sidebar/widget, the widget is just set to “get tags from current post”.
For example, this page is right:
https://kosmetik.bluemonkeys.eu/haut/
(It gets all posts related to skincare by multiple tags)
This page is wrong: https://kosmetik.bluemonkeys.eu/naturkosmetik/
(It seems to get all posts with the tag “presse” and none else)
The pages themselves always use the theme page composer plugin with a “Latest by Category” section.
I also tried switching completely to the custom fields, but the result is the same: It works on some pages, but still shows the “presse” posts on other pages…
Best, Gerald
]]>Hi,
Thanks for the plugin. I am trying to exclude current blog posts using the feature of the plugin, but cannot get it work. An example URL: https://www.relexsolutions.com/managing-exceptions-dont-just-look-at-them-do-something/
Any suggestions?
Thanks,
Juha
]]>Hi,
following your example in your website I succeeded to get the shortcode I needed but it would be nice to have the post shown not only vertically but also horizontally. To be simple in a Grid. Is it possible to add a code like column or similar in the shortcode?
Thanks
Angelo