Reply
Display Wordpress info outside of Wordpress
Old 06-29-2009, 11:06 PM Display Wordpress info outside of Wordpress
ATLChris's Avatar
Experienced Talker

Posts: 34
Trades: 0
I have a site that has a section for a blog. The blog sits inside /blog/. What I am trying to do is include a popular post plugin in my sidebar across the site, inside and outside the /blog/ directory.

Any thoughts?
ATLChris is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-30-2009, 03:54 AM Re: Display Wordpress info outside of Wordpress
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,066
Name: Matt
Location: Irvine, CA
Trades: 0
You need to include the wp-load.php file in order for this to work. You should then have access to all of wordpress' functions. Doing so will impact your performance, however.
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is online now
Reply With Quote
View Public Profile
 
Old 07-05-2009, 12:56 PM Re: Display Wordpress info outside of Wordpress
GeekSpecialties's Avatar
Super Talker

Posts: 113
Name: Leonard
Location: Minnesota, USA
Trades: 0
Here is a article on how to do this. I've used it and works well.
http://www.corvidworks.com/articles/...on-other-pages
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 07-05-2009, 02:14 PM Re: Display Wordpress info outside of Wordpress
blue-dreamer's Avatar
Super Spam Talker

Posts: 884
Location: Middle England
Trades: 0
You could also use an RSS feed to pull data into your non WP page.
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 07-05-2009, 08:43 PM Re: Display Wordpress info outside of Wordpress
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,066
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by blue-dreamer View Post
You could also use an RSS feed to pull data into your non WP page.
I don't think that the popular posts plugin has its own rss feed, plus there would be some additional overhead in accessing and parsing the rss feed. That solution would be appropriate for a remote site, but if you have access, including the necessary file is easier and more efficient.
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is online now
Reply With Quote
View Public Profile
 
Old 07-05-2009, 11:05 PM Re: Display Wordpress info outside of Wordpress
jamestl2's Avatar
I can feel your anger....

Latest Blog Post:
Project is Finally Completed!
Posts: 2,286
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Why not just query the database?
PHP Code:
$query "SELECT * FROM wp_posts ORDER BY comment_count DESC LIMIT 5"
Of course this only determines the popularity based on how many comments the post has. I'm not entirely sure where the plugin you're using gets the stats from to determine the popularity of the post.
__________________
Wordpress Mountain - Wordpress resources and Community
Hire me for Wordpress Projects | Wordpress Forums

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Reply     « Reply to Display Wordpress info outside of Wordpress
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13446 seconds with 13 queries