get_page not working with pootlepress?
-
Hi,
I want to use Pootlepress to easily create columns, video/parallax backgrounds, etc.Instead of creating all the content/rows on 1 created WP pootlepress page, I want to make multiple pages with a row per page. For example: 1 page for home, 1 page for about, etc. Why? I’m used to working with separate pages, one page per section + in my opinion it would be easier for customer overview.
Problem:
– By using get_page, all the separate sections get the same content, instead of their unique content.Situation:
– I’m using the blankslate theme.
– By using the original editor, there is no problem, the right content is displayd. However, I would like to use the pootlepress editor.
– On page.php, to copy all the page contents to 1 page, I’m using:
<?php
$pages = get_pages( array(‘sort_column’ => ‘menu_order’) );foreach ($pages as $page_data) {
$content = apply_filters(‘the_content’, $page_data->post_content);
$title = $page_data->post_title;
$slug = $page_data->post_name;
echo “<section class=’$slug’>”;
echo “<h2>$title</h2>”;
echo $content;
echo “</section>”;
}
?>Outcome example
– The outcome is:
Home
Home test content
About
Home test content– Instead of:
Home
Hometest content
About
About test contentSomehow, the pootlepress content can’t be targeted in the right way. Does anyone know how I could solve this problem?
Much appreciated! Thanks!
- The topic ‘get_page not working with pootlepress?’ is closed to new replies.