Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Blogging Forum


You are currently viewing our Blogging Forum as a guest. Please register to participate.
Login



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: 37
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?
__________________
--

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

@ATLChris
ATLChris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-30-2009, 03:54 AM Re: Display Wordpress info outside of Wordpress
NullPointer's Avatar
Will Code for Food

Posts: 2,782
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 07-05-2009, 12:56 PM Re: Display Wordpress info outside of Wordpress
GeekSpecialties's Avatar
Super Talker

Posts: 132
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
King Spam Talker

Posts: 1,222
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

Posts: 2,782
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 07-05-2009, 11:05 PM Re: Display Wordpress info outside of Wordpress
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
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.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
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.26112 seconds with 12 queries