Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Putting BFA Recent Comments within a Page (http://forum.bytesforall.com/showthread.php?t=6412)

paulae Mar 23, 2010 11:35 AM

Putting BFA Recent Comments within a Page
 
I'm trying to create a Page, not a Post, to show lists of the most recent posts from several categories, and also a list of the most recent comments. I've got a plugin that lets you use short codes to show the posts from certain categories on a page, but it doesn't "do" comments.

I was thinking if I could somehow run the code behind the BFA Recent Comments widget as a short code, that would work. Any ideas?

Or another way to do it?

juggledad Mar 23, 2010 11:51 AM

oh, your are going to love this. I just tried it out and it works. You can add a new widget area to a page!! It will only show up on that page. Have fun

paulae Mar 23, 2010 01:09 PM

OK, I'll bite. How? I pasted
Code:

<?php bfa_widget_area('name=recent_comments'); ?>
into a Page in HTML view. I visited the page in the browser. Then went to the Widgets admin. The widget area doesn't show up.

juggledad Mar 23, 2010 02:20 PM

I just pasted your code in to a page, viewed the page, went to widgets and there is now a 'recent_comments' widget area.

paulae Mar 23, 2010 02:32 PM

Still not working for me. Hmmm. Would it matter that there is other short code on the page above the new widget area code?

juggledad Mar 23, 2010 02:57 PM

it might, I just stuck it into the page, what plugin are you using with the short code?

paulae Mar 23, 2010 03:14 PM

List Category Posts. http://wordpress.org/extend/plugins/...s/other_notes/

But I tried a test page with no other code or short codes on it, and that also didn't work. Hmmm.

juggledad Mar 23, 2010 04:41 PM

I know what is happening. I have teh 'exec-php' plugin installed. It is executing the PHP in the post which creates the widget area If I deactivate it, the widget area goes away.

So in order for this to work, you need this (or possible a similar) plugin installed

paulae Mar 23, 2010 04:54 PM

OK, that worked! Thank you!

Now, however, it seems I can have only one instance of the BFA Recent Comments widget running. I still want it in a sidebar, but I also want it on this page: http://www.larchmontgazette.com/recent-headlines/

You see I have the infinitely inferior WP Recent Comments widget there, which doesn't give you any excerpt of the comment or let you fuss with any other options. How can I force another instance of BFA Recent Comments?


All times are GMT -6. The time now is 11:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.