xdark
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Related Posts] Bug when no articles with same tagResolved as for version 1.5.1. Please confirm it.
Forum: Plugins
In reply to: [Easy Related Posts] Bug when no articles with same tagThank you Chris. This is a known bug and it will be fixed on next update.
Forum: Plugins
In reply to: [Easy Related Posts] Hide related posts if no thumbnailAs for thumbnail mod.
If you want to display a custom thumbnail if post has no thumbnail, change line 219 in file erp_display:
original:$thumb_display = 0;
modified:
$thumb_display = <img src="your-custom-thumb-url"/>
if you want not to display the post if it hasn’t a thumbnail, then in same file add at line 202 the following snippet:
if (!has_post_thumbnail(get_the_ID())) { continue; }
Those should do the trick
Panos Vagenas
Forum: Plugins
In reply to: [Easy Related Posts] Broken when there are no tagsFile erp_display.php change lines 148-158
original:$tagAr = array(); foreach((get_the_tags($post->ID)) as $tag){ array_push($tagAr,$tag->term_id); } if (empty($tagAr)){ return FALSE; } $argu['tag__in'] = $tagAr; if (!empty($tags)){ $argu['tag__not_in'] = $tags; }
modified:
$tagAr = array(); $postTags = get_the_tags($post->ID); if (is_array($postTags)){ foreach($postTags as $tag){ array_push($tagAr,$tag->term_id); } $argu['tag__in'] = $tagAr; if (!empty($tags)){ $argu['tag__not_in'] = $tags; } } else { return FALSE; }
Forum: Plugins
In reply to: [Easy Related Posts] Hide related posts if no thumbnaili have another issue , if a post has not tags, the plugin send me this Warning: Invalid argument supplied for foreach() in /homepages/xx/xx/htdocs/xxx/wp-content/plugins/easy-related-posts/erp_widget.php on line 180
Any idea?
Thanks
Check this
Hello
has mention in the title, is it possible to hide a post with same tag if there is no thumbnail ? or give a default thumbnail image to this post?
Thanks you
Your plugin is really cool ??
Yes it is. Are you familiar with php?
Forum: Plugins
In reply to: [Easy Related Posts] ISSUE at erp_widget.php line 217Thank you for noticing this and for your kind words. ??
Forum: Plugins
In reply to: [Easy Related Posts] Placement of Easy Related Posts via functions.phpHey Indy,
Thank you for your suggestion. Put it in TODOs. ??
Forum: Plugins
In reply to: [Easy Related Posts] Placement of Easy Related Posts via functions.phpHi Indy,
Actually I am planing to implement a shortcode interface.
This will be more or less the same, as theme developers will be able to call the shortcode with the do_shortcode() function, in addition a shortcode will be more user friendly for end users.As for when this functionality will be implemented I can’t promise anything at the moment. Major changes are on the way for this plugin as I am trying to make it more easier to use, adding more customization options, trying to improve compatibility with other plugins and many other features…
But this is a project for my free time and I can’t promise anything…
Thank you anyway for your interest.
Panos Vagenas
Forum: Plugins
In reply to: [Easy Related Posts] Placement of Easy Related Posts via functions.phpHi Indy,
(1) Placement of Related Posts
Unfortunately there isn’t such option. Plugin automaticaly displays related posts and there isn’t a function to call it individualy at the moment.
(2) No Display on some Posts
It seems I can’t reproduce this. In my setup ERP is displaying related posts even if NextGen Gallery is displayed. When you disable the NextGen plugin then ERP is displaying properly?
Hi Oliverh,
Actually the image is generated through an object so it could be EM object cache plugin too…
Could you please try:
- Disable cache plugin
- If you are running on a linux server make sure that wp-content/plugins/easy-related-posts/inc/tim/cache folder is writable (755)
Please provide feedback if this fixed thumbnails issue.
Forum: Plugins
In reply to: [Easy Related Posts] simple doesn't workHi Monika,
- Could you define ‘source’? You mean admin panel or source code?
- Do you activate the plugin, you get the message that the plugin is activated and there is no plugin settings, no widget tab, no display at frontend?
- WP version?
- Is this a production or development setup?
Forum: Plugins
In reply to: [Easy Related Posts] Plugin error after last UpdateSorry for that guys. It appears to be a wrong statement in plugin initialization function upon activation. New options aren’t initialized properly. It will be fixed in next update anyway.
Forum: Plugins
In reply to: [Easy Related Posts] Plugin error after last UpdateThis shouldn’t occur normally. Try to update options in plugin settings
Forum: Plugins
In reply to: [Easy Related Posts] Broken when there are no tagsThis must be a php version specific bug. In php 5.* foreach should not iterate if
get_the_tags()
returnsfalse
. Please tell me your php version you are using.
In the mean time tryforeach((get_the_tags($post->ID)) || NULL as $tag)
orforeach(((array)get_the_tags($post->ID)) as $tag)
.
Thank you for noticing this.Forum: Plugins
In reply to: [Easy Related Posts] Plug shows words from body and not excerpt when selectedThe next update will be out this until 20 Oct but this bug fix will have to wait. I can’t give an ETA at the moment.