[Plugin: Blog-in-Blog] BIB in posts
-
Hi, this plugin is outstanding and makes WP a full CMS – great!.
Now: we cant use it on posts because your central function
get_posts(category_id)
stalls if the calling post has the same category_id set, because you get endless iterations.I can use BIB on posts that have different categories (commenting out your is_page())
Now everything would work fine without much re-programming (create a new WP_Query within the post), if we just could exclude the calling post ID from the get_posts() call,
e.g. $parameter[‘exclude’]=$post->id
then the calling post would not be put into the posts-array thet get_posts() delivers.
something like
if (!(is_page())) { $params['post__not_in'] = $the_ID; }
right before the call of $postslist = get_posts($params);
I dont know enough PHP / WordPress to fix that one little line.
As far as I have seen otherwise this plugin is PERFECT and having this one line fixed I would be happy to donate something because this plugin allows me to use any template even without blog_list shortcode.
Bytheway: you have coded a lot of debug code: how do I
- The topic ‘[Plugin: Blog-in-Blog] BIB in posts’ is closed to new replies.