Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #667

    Hi,

    How can i remove the info associated with all the posts, like Author, Categories, Comments, and also Date?

    i have found a similar question on the Avisio support, but not here.

    I´m guessing it´s similar, but I don´t want to mess up.

    Txs

    Vasco

    #32378

    In single.php and archive.php you’ll find following code – please delete it:

    <span class="date ie6fix"><?php the_time('M d, Y') ?></span>
    <span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
    <span class="author ie6fix"><?php _e('by','newscast');?> <?php the_author_posts_link(); ?></span>

    The Dude

    #32379

    Thank you and sorry for my late reply. I was on holidays.

    I did that, but It didn´t remove what I wanted. I want to remove the date and “no comments” on the top of the excerpt. You have this info, thatn the excerpt and than “read more…”.

    I want to get rid of the Date and “no comments”

    Thank you

    Vasco

    #32380

    If you want to remove these informations on the front page (index.php) you must delete following code in index.php:

    <span class="date ie6fix"><?php the_time('M d, Y') ?></span>
    <span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
    <span class="author ie6fix"><?php _e('by','newscast');?> <?php the_author_posts_link(); ?></span>

    If that doesn’t help can you send me a screenshot of what you want to remove. I.e. my solution removes the date, comments and author of the article “Apple rebrands to Banana! ” on the homepage located here: http://www.kriesi.at/themes/newscast/

    The Dude

    #32381

    Hi,

    Here is what i want:

    Remove the “# comments” on the homepage excerpts like they appear here, but keep the “date” and “Read More” (here translated to “Ler mais”) :

    http://www.kipfitoficinas.com/wp-content/uploads/2010/09/comments.tiff

    And when I go to the full article, I want to remove the categories list, as seen here on the bottom right:

    http://www.kipfitoficinas.com/wp-content/uploads/2010/09/featured.tiff

    That´s it.

    Thank you,

    Vasco

    #32382

    To remove only the comments you need to delete following line:

    <span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>

    This line is used in index.php – here twice – for the “FULL SIZED POSTS” and for the “SMALL SIZED POSTS” (posts which are arranged in 2 columns). The code is also used in archive.php and in single.php.

    To remove the categories list delete following code:

    <span class="categories"><?php the_category(', '); ?></span>

    It’s used in index.php for the “FULL SIZED POSTS” and in single.php.

    The Dude

    #32383

    Awesome! Worked again.

    BTW, and while we´re “talking”, how do I limit the number of blog entries on the mainpage to only 2?

    Txs again

    VC

    #32384

    Do you mean on the slider or below the slider? 2 entries only is a little short don t you think?

    #32385

    Under Newscast options you can select how many full size posts you would like to have (Article Appearance on frontpage and category overview pages).

    If you want to limit the total number of displayed posts too, it’s possible with a small modification of index.php:

    Replace

    if ($additional_loop->have_posts()) :
    while ($additional_loop->have_posts()) : $additional_loop->the_post();

    // ############################# FULL SIZED POSTS #############################

    with:

    if ($additional_loop->have_posts()) :
    while ($additional_loop->have_posts() && $amount <= 2) : $additional_loop->the_post();

    // ############################# FULL SIZED POSTS #############################

    and

    <?php
    if($smallsized > 2): echo '</div>'; $smallsized = 1; endif;

    endif; endwhile;

    with:

    <?php
    if($smallsized > 2): echo '</div>'; $smallsized = 1; endif;

    endif; $amount++; endwhile;

    please notice that the value of $amount <= 2 can be changed to the number of posts you like – is it higher than your “Full size posts value” you’ll get small and full size posts; is it equal ot lower you’ll only full sized posts.

    The Dude

    #32386

    Thank you. Will try this out and report back.

    #32387

    Hi,

    As for the “limit posts”:

    I have done this, and it limited the number of posts, however, I still have 3.

    I have defined (on Newscast Options) to limit to 2, and have made both your changes.

    Any suggestions?

    Txs

    #32388

    I meant “3 posts” on the homepage. And this is where I want to limit the number of posts displayed, below the slider.

    #32389

    The value of amount can be as low/as hight as you want. It starts to count with zero (0) and counts to the value you chose for amount. So if you want 2 posts you need to set amount to 1 — it then counts 0…yes, 1…yes, 2….no value too high.

    So replace:

    if ($additional_loop->have_posts()) :
    while ($additional_loop->have_posts() && $amount <= 2) : $additional_loop->the_post();

    // ############################# FULL SIZED POSTS #############################

    with:

    if ($additional_loop->have_posts()) :
    while ($additional_loop->have_posts() && $amount <= 1) : $additional_loop->the_post();

    // ############################# FULL SIZED POSTS #############################

    The Dude

    #32390

    Got you. Now I understand. I didn´t count the “0”. Txs

    #32391

    Glad that it works now.

    The Dude

    #32392

    Thanks for the information. I was able to remove the date, author and comments on my blog posts from the information you provided above. Very happy!

    Kristen

    #32393

    Glad the information was able to help :)

    #32394

    Hello,

    I want remove infos from posts (Comments and author) in all pages, but I would keep the date. It’s possible ?

    If this is not possible, I think to follow Dude as above : If you want to remove these informations on the front page (index.php) you must delete following code in index.php…

    Sorry, for my many post, I hope to finish the setting of my blog, with this fine theme !

    Best regards

    Bigi

    #32395

    Hi,

    I just figured out that deleting 2nd and 3 lines, it works (I keep the date). But it works only in archives, I stille see infos on the frontpage ?!

    Someone could help me ?

    Thank you

    Bigi

    #32396

    Hi,

    It’s ok for me, I found it !

    Bigi

    #32397

    Hey!

    Good to see you’ve solved the issue already. I’ll close this topic now.

    If there’s anything else you can create a new support topic.

    Regards,

    Chris

Viewing 21 posts - 1 through 21 (of 21 total)

The topic ‘Removing info from posts (Author, Categories, etc…)’ is closed to new replies.