Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter abel42

    (@abel42)

    Thanks for your time and explanation, works perfect..

    Thread Starter abel42

    (@abel42)

    RVoodoo,

    Here is what my page.php code looks like, where should the code be pasted?:

    <?php

    function render_content() {

    ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>

    <!–Post Wrapper Class–>
    <div class=”post”>

    <!–Title–>
    <div class=”title wrap”>
    <div class=”post-title”>
    <h1 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h1>
    </div>
    </div>

    <!–post text with the read more link–>
    <div class=”post-content”>
    <?php the_content(); ?>
    <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
    </div>
    <?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    <!–post meta info–>
    <div class=”meta-bottom wrap”>
    </div>

    </div><!–end .post–>

    <?php comments_template(); // include comments template ?>

    <?php endwhile; // end of one post ?>
    <?php else : // do not delete ?>

    <div class=”post”>
    <h3><?php _e(“Page not Found”); ?></h3>
    <p><?php _e(“We’re sorry, but the page you’re looking for isn’t here.”); ?></p>
    <p><?php _e(“Try searching for the page you are looking for or using the navigation in the header or sidebar”); ?></p>
    </div>

    <?php endif; // do not delete ?>
    <?php

    }

    add_action( ‘builder_layout_engine_render_content’, ‘render_content’ );

    do_action( ‘builder_layout_engine_render’, basename( __FILE__ ) );

    ?>

    Thread Starter abel42

    (@abel42)

    Thnaks RVoodoo for the the help and quick response.
    Do I put this at the top of the page in a specific place in the code?

    Thanks again

Viewing 3 replies - 1 through 3 (of 3 total)