WordPress.org

Ready to get started?Download WordPress

Forums

Suffusion
template with page content (5 posts)

  1. mrose17
    Member
    Posted 2 years ago #

    i have a template-xyz.php file associated with a page and that works just fine (it displays a custom content type).

    however, i can't figure out what call to put in the template in order to have suffusion output the page content (the html that does show up for other pages that use the default template).

    i've tried placing suffusion_content() inside the

    <div id="content" class='hfeed content'>

    container, to no avail.

    thanks!

    /mtr

    ps: sorry if the answer is obvious, i can't seem to find an example/instructions.

    http://wordpress.org/extend/themes/suffusion/

  2. Sayontan Sinha
    Member
    Theme Author

    Posted 2 years ago #

    Typically what you have done should work, but without knowing more about the template I cannot provide additional inputs.

  3. mrose17
    Member
    Posted 2 years ago #

    thanks for the reply. here is the smallest example of something that doesn't work... (i took all of my code out of the template and just have suffusion_content();

    <?php
    /**
    * Template Name: Printable Publications
    *
    * Displays the Printable Publications page
    *
    * @package Suffusion
    * @subpackage Template
    */
    global $suffusion_unified_options;
    foreach ($suffusion_unified_options as $id => $value) {
    $$id = $value;
    }

    get_header();
    ?>
    <div id="main-col">
    <?php suffusion_before_begin_content(); ?>
    <div id="content" class='hfeed content'>
    <?php
    suffusion_content ();
    ?>
    </div><!-- content -->
    </div><!-- main col -->
    <?php get_footer(); ?>

  4. Sayontan Sinha
    Member
    Theme Author

    Posted 2 years ago #

    You are missing the "loop". Take a look at http://themes.svn.wordpress.org/suffusion/4.2.0/page.php, and you will see calls to if (have_posts()) etc. Without those calls things will not work.

  5. mrose17
    Member
    Posted 2 years ago #

    oops!

    thanks,

    /mtr

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags