Extracting text from a post
Hi all…this is my first attempt at getting into creating a theme for WordPress and I require a little assistance.
I’m creating a site where I will list events but want to enter the information into a post and then extract the information as separate segments (unless there is an easier way). My thinking is that it would be something along the lines of using certain tags and then creating a query to search for these tags and extract everything between. So if I had a ‘price’ field for example that I wanted to be formatted in a different way, contain this within tags <price>$4.00<price> so I can then format this exclusively.
Any thoughts on the best way of doing this?
- The topic ‘Extracting text from a post’ is closed to new replies.