Is there an easy way to remove the meta from a post_list?
http://heronsgate.ca/ (list is at the bottom)
- You must be logged in to reply to this topic.
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.
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.
I was afraid you were going to say that…. I was hoping I had missed a dialogue box…..
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.
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(); ?> -->
Any chance you have a draft of what will be going here?
and/or is there other documentation that might help?
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'); ?>
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>
Thanks – I’ll try that.
Is themeblvd_blog_meta(); defined somewhere? I’d just like to peek at it and see how that works.
themeblvd_blog_meta is an action hook, which has the function hooked to it called themeblvd_blog_meta_default. —