Posts: 2
Threads: 1
Joined: Feb 2011
Hi everybody!
Can i get a page conent in php without the whole template?
in example:
if i create a page like:
<h1>links</h1>
page text
if i want to insert that page in the template
is there a function to load that page everytime?
something like:
<?php load_page("links"); ?>
thanks to all!
Posts: 2
Threads: 1
Joined: Feb 2011
Ok i've created a plugin for doing that
I uploaded the plugin here is the link
http://get-simple.info/extend/plugin/sim...content/87
Posts: 2,928
Threads: 195
Joined: Feb 2011
That is a very clever Plugin and I like it very much.
So it is easy to add texts to Info-Boxes somewhere on the page without the need to edit the templates just to change the content.
Thanks for that!
Posts: 2,094
Threads: 54
Joined: Jan 2011
If you use the I18N plugin this functionality is already included, e.g.:
Code:
<?php get_i18n_content('links'); ?>
And it will get the correct language if there are multiple versions of the page.
Posts: 15
Threads: 3
Joined: May 2010
just wanted to say: thanks for sharing this plugin, its just what i needed.
_
Silence Is The True Friend That Never Betrays
Posts: 5
Threads: 1
Joined: Oct 2011
Hello,
this is a great Plugin Thank you!
Is there also a possibility to output the Page Title ?
I've created a website with a Java Script Accordion for the Content.
I created a Page for each Button and get the content with <?php get_i18n_content('accordion'); ?>
Is there a possibility to get the Pagetitle for the Buttontitle like <?php get_i18n_page_title('accordion'); ?>
Normaly i just get the active Title with <?php get_i18n_page_title(); ?> but that do not work out because i have individual Pages on one site.
Would be great if somebody knows how to do this.
Thanks! P.
Posts: 5
Threads: 1
Joined: Oct 2011
Ok i found something in another Topic:
http://get-simple.info/forum/post/17624/#p17624
I'll try this one, hope this works for the title to!
THX P.