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? |
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
|
OK, I'll bite. How? I pasted
Code:
<?php bfa_widget_area('name=recent_comments'); ?> |
I just pasted your code in to a page, viewed the page, went to widgets and there is now a 'recent_comments' widget area.
|
Still not working for me. Hmmm. Would it matter that there is other short code on the page above the new widget area code?
|
it might, I just stuck it into the page, what plugin are you using with the short code?
|
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. |
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 |
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 01:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.