ThemeShaper Forums » ThemeShaper WordPress Themes


Feature Site Theme - editing random features and 'About' block through wp_admin

(4 posts)
  • Started 11 years ago by scottk
  • Latest reply from scottk
  • This topic is resolved
  1. Hi all
    Firstly thanks for the great work put into thematic. I'm very new but making good progress in customising Feature Site, and hope you might be able to help with a query.

    Is there an easy way to make the Random ceatured content and the 'About' block on the Feature Site front page editable via the wp_admin Page panels? Both seem to have straightforward static-page content, and it would be a whole lot simpler to add content here rather than hard-coding into front-page.php and feature-front-1.php.

    Many thanks
    ... Ken

    Posted 11 years ago #
  2. you could make custom meta boxes for that info.

    devin's tut is specifically for custom post types, but can probably be adapted.

    Posted 11 years ago #
  3. Helga many thanks. I'll look into that. I hadn't heard of meta boxes before.

    For the Featured Content to work in the way I am imagining, I'm wondering if I could also make a template (like front-page.php) and use <?php the_content(); ?> in the relevant place. Same with the 'About' content in front-page.php? Since you came up with meta boxes first, I guess it ain't that easy ... and my PHP knowledge is at 'beginning' level ...

    ... Ken

    Posted 11 years ago #
  4. Well here's one solution that seems to work for the moment, as I mention above. My 'front-block-1' div in front-page.php now looks like this:

    <div id="front-block-1" class="front-block block">
    <h3>Who's Behind <?php bloginfo('name') ?>?</h3>
    $user_info = get_userdata(1);
    $gravatar_email = $user_info->user_email;
    echo get_avatar($gravatar_email, '84');

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

    <div class="entry-content">
    <?php the_content(); ?>
    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'thematicfeaturesite' ), 'after' => '</div>' ) ); ?>
    <?php edit_post_link( __( 'Edit', 'thematicfeaturesite' ), '<span class="edit-link">', '</span>' ); ?>
    </div><!-- .entry-content -->
    <?php endwhile; ?>
    </div><!-- #front-block-1 .front-block .block-->

    I will look into Meta Boxes, though. Thanks again.
    ... Ken

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.