Alternative to get_bloginfo( ) for posts and pages
-
I am developing a WP theme and it will include some pre-made pages. I would like those that purchase my theme to be able to just cut and paste the pre-made pages into their wp install no matter what domain they install the theme on. These pages and posts will have images in them.
I have done some research and found that get_bloginfo( ) doesn’t work on posts and pages. I am hoping to find an alternative to this.Say someone buys my theme, they will upload the theme to their wp install and install the theme.
They will then take a pre-coded page content like…<td valign="top" width="260" height="254"><strong><img class="size-full wp-image-38 aligncenter" title="ecover1" src="http://localhost/WP/wp-content/uploads/2012/01/ecover11.png" alt="" width="300" height="369" /></strong></td> <td valign="middle" width="420" height="254"> <h3 style="text-align: left;" align="center">Here's How You Can Get Tens Of Thousands Of Visitors That Want To Buy Your Product Without Spending A Cent On Advertising!</h3> <h4 style="text-align: left;" align="left">Have you been spending loads of money trying to get pay per click advertising to pay off?</h4>
As you can see the image will be called from my original local host. I am hoping to find a code snippet that will allow me to place all the images from each pre-made page content in the theme directory image folder and call the images to display in posts and pages.
Thanks in advance for any help on this.
Regards,
GS
- The topic ‘Alternative to get_bloginfo( ) for posts and pages’ is closed to new replies.