How to change Archive templage

Hi There,

I have a question about how to change the archive templates. I want to delete picture, published by, date, click here to read more, boy-text .

Please watch the screenshoot:

So Archive only have header and the tag/comment-line. This is because my Archives will have more than 50 post .

Is that possible? And how do I do it

Thanks. I really enjoy playing around with your themes and plugins.



  • Timothy
    • Chief Pigeon

    Hey there Peter.

    Sure it's possible. :slight_smile:

    Looking briefly at the theme files I don't see an archive page, so you could just create a total custom one:


    Take a look here for the template hierarchy.

    You could then use one of the existing code from:

    /wp-content/themes/bp-social/index-post.php (This is where the code for that page is pulled from I believe.)

    Copy it over and edit as you wish.

    For something like the post meta though (published by) you can remove that here:

    Admin --> Appearances --> Theme Options --> Post Settings [TAB]

    Let me know if you need anything else, or any more pointers.

    Take care.

  • peter_jakobsen
    • WPMU DEV Initiate

    Hi Timothy,


    I understand this: Admin --> Appearances --> Theme Options --> Post Settings [TAB]
    and I got the: "Copy it over and" but the "edit as you wish." are far too complicated for me. I have no clue on what to write in the Archive-file.

    I was wondering - when there is NO archive.php then where do Social-theme get is archive-data from ? Is that not where to look?

    Thanks for fast reply,



  • Timothy
    • Chief Pigeon

    Hey again.

    The archive takes it code from this file on this theme:


    but the "edit as you wish." are far too complicated for me.

    That's ok, I can give more direction.

    You might like to do this in a child theme though:

    So if you don't want the main content of the article, you can remove this (around line 58:

    <div class="post-content">
    $post_style = get_option('tn_buddysocial_blog_post_style');
    $post_meta_status = get_option('tn_buddysocial_post_meta_status');
    if($post_style == '' || $post_style == 'full post') { ?>
    <?php the_content( __('Read more &raquo;', TEMPLATE_DOMAIN) ); ?>
    <?php } elseif($post_style == 'excerpt post') { ?>
    <?php echo custom_the_content(70); ?>
    <?php } elseif($post_style == 'featured thumbnail with excerpt post') { ?>
    <?php wp_custom_post_thumbnail($the_post_id=get_the_ID(), $with_wrap='', $wrap_w='', $wrap_h='', $title=get_the_title(), $fetch_size='medium', $fetch_w='200', $fetch_h='200', $alt_class='alignleft feat-thumb'); ?>
    <?php echo the_excerpt(); ?>
    <?php } ?>
    <?php $facebook_like_status = get_option('tn_buddysocial_facebook_like_status'); if ($facebook_like_status == 'enable') { ?>
    <iframe src="<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="margin-top: 10px; border:none; overflow:hidden; width:450px; height:30px"></iframe>
    <?php } ?>

    Remove this for avatars (around line 40):

    <div class="post-avatar">
    <?php if(function_exists("bp_post_author_avatar")) : ?>
    <?php bp_post_author_avatar(); ?>
    <?php else: ?>
    <?php echo get_avatar($author_email,'32'); ?>
    <?php endif; ?>

    Hopefully that should help :slight_smile:

    Take care.

  • peter_jakobsen
    • WPMU DEV Initiate

    Hi Timothy,

    That is the best support I got in my entire Web-life:slight_smile:
    Just did what you wrote and everything worked like magic.

    I'll be back - now I really believe it is possible to make miracles with your supportservice.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.