I have been trying to add extra code in my page template, but no matter where I put it, it messes up the design of the page,
The page becomes just white with the standard genesis code written out and then the post or page, without any layout.
For example, I want to display featured pages in a specific page. So a list of pages with their image and an exerpt. I have found this piece of code on another forum:
$post_id = 1;
$queried_post = get_post($post_id);
$title = $queried_post->post_title;
echo "<h2>" . $title . "</h2>";
echo "<p>" . $queried_post->post_excerpt . "</p>";
But I just can't figure out in which position to paste it in my Genesis Page Template in order for it to properly function.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!