|
#1
Mar 23, 2010, 12:35 PM
|
|
|
|
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
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?
|
#2
Mar 23, 2010, 12:51 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Mar 23, 2010, 02:09 PM
|
|
|
|
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
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.
|
#4
Mar 23, 2010, 03:20 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I just pasted your code in to a page, viewed the page, went to widgets and there is now a 'recent_comments' widget area.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Mar 23, 2010, 03:32 PM
|
|
|
|
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
Still not working for me. Hmmm. Would it matter that there is other short code on the page above the new widget area code?
|
#6
Mar 23, 2010, 03:57 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
it might, I just stuck it into the page, what plugin are you using with the short code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#8
Mar 23, 2010, 05:41 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Mar 23, 2010, 05:54 PM
|
|
|
|
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
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?
|
|