2012-12-30, 09:16:59
Hi,
Firstly thankyou for a great plugin. I have a question about accessing the content of a tab from a parent page....
I have created a function in the "theme_functions.php" file that accesses all children pages, loops them and and obviously I can access stuff like so:
"$page['url']"
But how can access the content of a specific tab from there?
Any help appreciated. Here is the loop:
xx
Firstly thankyou for a great plugin. I have a question about accessing the content of a tab from a parent page....
I have created a function in the "theme_functions.php" file that accesses all children pages, loops them and and obviously I can access stuff like so:
"$page['url']"
But how can access the content of a specific tab from there?
Any help appreciated. Here is the loop:
PHP Code:
foreach ($newsPages as $page) {
$class = '';
if ($number == $totalItems) { $class = 'last'; }
$menu .=
'<li class="'. $class .'">'.
'<h2 class="generic-subtitle">' . '<a href="'. find_url($page['url'],$page['parent']) . '" title="'. encode_quotes(cl($page['title'])) .'" class="read-more-link">' . encode_quotes(cl($page['title'])) . '</a>' . '</h2>'.
'<p>' . encode_quotes(cl($page['metad'])) . '</p>'.
'<p class="last"><a href="'. find_url($page['url'],$page['parent']) . '">Read More</a></p>'.
'</li>';
$number++;
}
xx