StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-26-2012, 09:12 AM
Erhnam Erhnam is offline
Registered User
Genesis Member
 
Join Date: Feb 2012
Posts: 11
Default Custom template split wordpress content and template content

What I want is to split the content generated by wordpress (images, text, etc) and the content from the template and divide into seperate cells into the table. I tried it with the example below but from what I see the content from wordpress is always put on top and not inserted into the content div. Is there any solution for this?

Code:
<?php /*
Template Name: Page Layout
*/ ?>

<?php 

remove_action( 'genesis_post_title','genesis_do_post_title' ); // Removes post title
add_action( 'genesis_post_content', 'child_do_content' );
?>

<?php function child_do_content() { ?>

<table border="1">
<tr>
<td><div id="content"> </div></td>
</tr>
<tr>
<td><h1>This comes from the page.php</h1></td>
</tr>
</table>

<?php }

genesis(); 

?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:30 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.