2013-09-02, 21:58:40
The area would be the same across the whole site but I need to call it with a separate navigation.
My current suggestion:
Create a custom field named 'link' and add an anchor to it, add a jQuery script to check clicks on these, let's call it footer links (e.g. '#footer-downloads'. Whenever a footer links in clicked, the content should be loaded via ajax post to a php function within a functions.php file, to call getPageContent.
So far so good, but here I have a general question:
How can I access the getPageContent function from php file lying somewhere in the theme folder?
My current suggestion:
Create a custom field named 'link' and add an anchor to it, add a jQuery script to check clicks on these, let's call it footer links (e.g. '#footer-downloads'. Whenever a footer links in clicked, the content should be loaded via ajax post to a php function within a functions.php file, to call getPageContent.
So far so good, but here I have a general question:
How can I access the getPageContent function from php file lying somewhere in the theme folder?