Get them plugins working

October 9th, 2007

More about this plugin from Coffee2Code

I have already used this plugin successfully on my home page in displaying the link for my daily photo section, it is a beast and works as desired. the problem was when publishing a photo more regually than a written post, my most recent post list would become over populated with picture links, which serves no average representational purpose other than to say I have written nothing interesting lately.
I wanted to remove these picture post listings from the recent post list, but how.
I found this article by Lorelle VanFossen, further describing how this code can be used to enhance your website/blog. Check this out. In my side bar I had the wordpress code to gather most recent posts, set to ten as default. I wanted this, but to exclude the daily photo posts.
This is what I had.

<ul class="categories">
<?php BX_get_recent_posts($p,10); ?>
</ul>

And this is what I replaced it with, big thanks to the plugin.

<?php c2c_get_recent_posts(10, "<li>
%post_URL%</li>", "1 3 4 5 6 7 8 9 10 11 13 14 16 17"); ?>

The numbers above represent all the categories I post in, Except for 15, which is the category for daily photo post. Cool eh.

Update

Not working in the morning, infact not all day, at home with Molly of the mayhem hence the late night activities on the blog, If you are perusing my site at this time, apologies as to lack of functionality regarding the categories list- Currently giving wordpress errors- trying to sort. I have a plan Stay tuned.

Another Update

WordPress database error: [Not unique table/alias: 'wp_post2cat']
SELECT SQL_CALC_FOUND_ROWS distinct wp_posts.* FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) LEFT JOIN wp_post2cat ON wp_post2cat.post_id = wp_posts.ID WHERE 1=1 AND category_id IN (8) AND (post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’)) AND wp_post2cat.category_id NOT IN (15) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10

the above is the error message displayed when hitting a category link, and I was thinking everything was going swimmingly. Will dabble..
Can’t at the moment fix the problem.

Morning Update

We now have the problem fixed here. All hail the ‘Web-Master’ I hath cast my will upon cyberVille and she submits to my authority. Jesting apart I just re-traced my footsteps, and eventually got back to the significant event that began this brake down of functionality.
For your reading pleasure I will take you on a journey into the land of my confusion.
As described above I had a happy feeling about this plugin, it working as it should in conjunction with the daily photo category.
So when I put back.

<ul class="categories"> <?php BX_get_recent_posts($p,10); ?> </ul>

And the problem remained, I naturally assumed it had been there for a couple of weeks since I installed it for daily photo cat, and I had just not noticed that the grab category list function was not working.
So got rid of all usage of c2c plug, deactivated it and tested. The problem remained. Stomach lurch. I finally traced it back to another plugin Advanced Category Excluder, which when options changed in the settings to show daily photo in archive list the problem went away.
Not quite sure how the interactions of these plugins caused this situation, but at least I have justified my obsessive tendency to blog about why I am using a particular plugin. Stimulating reading for the google bots. Hello human, are you there. Hah ha.

Entry Filed under: WordPress

1 Comment Add your own

1.
Lorelle  |  October 10th, 2007 at 12:45 am

Hopefully, you’ve seen that this Plugin has not been updated so it won’t work with recent versions of WordPress. I’m working to get an update going soon. So stay tuned.

Leave a Comment

Required

Required, hidden



Trackback this post  |  Subscribe to the comments via RSS Feed