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.

Website Design Forum


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



Freelance Jobs

Reply
Wordpress Content Extract question
Old 08-17-2010, 02:18 AM Wordpress Content Extract question
Novice Talker

Posts: 5
Name: martin
Trades: 0
Hi,

Do you know if there is any code that is specifically working with Wordpress that can pull in and update automatically small amount of text from whole text in Wordpress page (but excludes the post/page heading or title including its date in the whole text)? The reason that I am asking this is that we would like to use this code for the tile in client website where text is being update-able automatically when the other page in Wordpress admin area is updated.


For example, there is a tile called Case of the Month in the bottom of page where there is following text: "We have just purchased new equipment.." a part of extracted text - and "Read More" which is a link to full post, so when it is clicked it goes to Latest News page that displays these following:
- Page heading: "Latest News"
- Text underneath: “We have purchased new equipment for monitoring changes in heart rate of patients. This features high-end technology to detect even smallest hard-to-detect heart bumps ....."


I have used the following code as I could only think of:

1) The Get a Post code statement : <?php get_a_post(31); ?> where 31 is the ID number of post or page in Wordpress administration.

2) The Content Extract code: <?php wswwpx_content_extract ( '(More...)' ); ?> where "More..." is the text to be displayed after the extracted text from page with ID of 31 (see above).


However, there is problem that we were having with the above code as the issue was that the page heading was also retrieved and thus become the part of text in the tile, since the heading is also the part of text in that page. We do not wish the text in tile to auto-update with the page heading on it.

If you know of other solutions to remove (or perhaps some sort of in-line code to "hide" first line of extracted text) the heading in the extracted text in the tile, or any means of other content feed, then that would be great and helpful for future projects.

Many thanks!
martintung is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Wordpress Content Extract question
 

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.34354 seconds with 12 queries