Jump to content


Photo

Wordpress Excerpt on External page.


  • Please log in to reply
6 replies to this topic

#1 JohnX

JohnX

    New member

  • New Members
  • 6 posts

Posted 10 October 2010 - 03:18 PM

I've been trying to implement the excerpt function from WordPress to put news updates/summary's from my blog on to my non WordPress index.php page.

Even after reading through most of the WordPress documentation I still can't see how to do this :(!?.

It seems like I would have to just point to the news summary on my index.php page.. but I've been trying to understand functions such as The_Content().. and have been having no luck. Can anyone on here help me out with a bit of a step by step process on how to do this?

Thank you for your time.

-John.F
  • 0

#2 Ben

Ben

    Administrator

  • Administrators
  • 5,638 posts
  • LocationChico, CA

Posted 10 October 2010 - 04:53 PM

I'm not sure how you would do that using Wordpress functions... You could, however, use PHP to parse RSS feed that Wordpress generates and display it in your page. I did a couple screencasts on doing this called "Use PHP, jQuery & AJAX to Load XML Data". It's available in the KillerSites University (http://www.killersites.com/university/ - subscription required) within the PHP > Misc PHP Videos section.

If I remember correctly, I use PHP and SimpleXML (http://www.php.net/m...mples-basic.php) to parse the data in the RSS feed and display it on the page.
  • 0
Benjamin Falk
Falken Creative : Twitter

#3 JohnX

JohnX

    New member

  • New Members
  • 6 posts

Posted 10 October 2010 - 11:49 PM

I believe Stephen also mentioned parsing RSS feeds when displaying the posts on an external page. Do you remember exactly what your tutorial video was called in the Killersite University? There's just so many videos to go through I don't want to be on the wrong track..

sounds like I'm close though, and you definitely know what I'm talking about so that makes me happy. I'm thinking once you let me know of the tutorial you did I will actually sign up for the program, definitely seems worth it. Also, your PHP/SimpleXML link appears to be broken.. :(
  • 0

#4 Ben

Ben

    Administrator

  • Administrators
  • 5,638 posts
  • LocationChico, CA

Posted 11 October 2010 - 12:54 AM

Here's the link (it looks like the forum thought the ")" was part of a link: http://us3.php.net/m...mples-basic.php

I did a two part series called "Use PHP, jQuery & AJAX to Load XML Data" that's within the PHP > Misc PHP Videos section. My source files are also included. It covers how to parse an RSS feed (in the video, I use this forum's RSS feed) and display the data on the page. Because parsing the RSS feed may take a second or two, I also cover how to use jQuery/AJAX to load and display the data after the page is loaded so it doesn't slow down the page appearing for the visitor.

I'm pretty active on this forum, so if you follow along with the videos and run into issues, you can always post your questions or PM them to me directly.
  • 0
Benjamin Falk
Falken Creative : Twitter

#5 JohnX

JohnX

    New member

  • New Members
  • 6 posts

Posted 11 October 2010 - 02:55 AM

Ok thank you very much. I'll do some research and testing and let you know how it turns out.
Thanks again.
  • 0

#6 Susie

Susie

    Advanced Member

  • Advanced Member
  • PipPipPipPip
  • 3,359 posts
  • LocationColumbus, OH

Posted 11 October 2010 - 04:59 AM

Here's another technique.
  • 0

#7 bevisblaine25

bevisblaine25

    New member

  • Member
  • 13 posts

Posted 05 March 2012 - 08:53 AM

The core software is built by hundreds of community volunteers, and when you’re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine.

Edited by Andrea, 05 March 2012 - 09:42 AM.
Link Deleted - No SPAM please!!

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users