This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

removing Metadata from post list

  • Creator
    Topic
  • #5856
    sharonq
    Participant

    Is there an easy way to remove the meta from a post_list?

    http://heronsgate.ca/ (list is at the bottom)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #5861
    Jason Bobich
    Keymaster

    Any edits you want to make how posts display in a post list can be made by copying content-list.php from Jump Start to your Child theme to edit.

    http://dev.themeblvd.com/tutorial/editable-content-files/

    #5876
    sharonq
    Participant

    I was afraid you were going to say that…. I was hoping I had missed a dialogue box…..

    Thanks

    #5885
    Jason Bobich
    Keymaster

    Yeah, I try not to put any options that directly effect the little bits you should be editing in these template parts by default in the framework.

    It’s a very simply file. It allows you to work with just the simple HTML and template tags that make up the little part that is the post within the loop. Just copy it over to your Child theme and play with it. If you mess something up, just delete the file.

    #5954
    sharonq
    Participant

    I’ve looked at the file and this is the line that seems to need editing:

    <?php themeblvd_blog_meta(); ?>

    If I remove it the meta data disappears.
    If I move it the meta data goes elsewhere

    What I would like to do is to just display the date – no author, comments number, categories

    What should I replace themeblvd_blog_meta() with?

    <?php
    /**
     * The default template for displaying content in post list.
     */
    ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header class="entry-header">
    		<h1 class="entry-title entry-title-with-meta"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    	<?php themeblvd_blog_meta(); ?>
    	</header><!-- .entry-header (end) -->
    	<div class="entry-content">
    		<?php themeblvd_the_post_thumbnail( themeblvd_get_att( 'location' ), themeblvd_get_att( 'size' ) ); ?>
    		<?php themeblvd_blog_content( themeblvd_get_att( 'content' ) ); ?>
    		<?php themeblvd_blog_tags(); ?>
    		<div class="clear"></div>
    	</div><!-- .entry-content (end) -->
    </article><!-- #post-<?php the_ID(); ?> -->
    #5955
    sharonq
    Participant

    Any chance you have a draft of what will be going here?

    http://dev.themeblvd.com/tutorial/editing-post-and-page-meta-boxes/

    and/or is there other documentation that might help?

    #5967
    Jason Bobich
    Keymaster

    You’re essentially just asking how to display the date posted for the post within the loop, which is just a general WordPress thing. You could replace the themeblvd_blog_meta function with the_time, for example.

    <?php the_time('F j, Y'); ?>

    http://codex.wordpress.org/Function_Reference/the_time

    http://codex.wordpress.org/Formatting_Date_and_Time

    If you wanted to used some of the same formatting the theme does, you can expand that to something like this:

    <div class="entry-meta">
    	<time class="entry-date updated" datetime="<?php the_time('c'); ?>" pubdate><i class="icon-calendar"></i> <?php the_time( get_option('date_format') ); ?></time>
    </div>
    #6047
    sharonq
    Participant

    Thanks – I’ll try that.

    Is themeblvd_blog_meta(); defined somewhere? I’d just like to peek at it and see how that works.

    Sharon

    #6057
    Jason Bobich
    Keymaster

    themeblvd_blog_meta is an action hook, which has the function hooked to it called themeblvd_blog_meta_default. —

    /framework/frontend/functions/display.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.