[resolved] How to remove the Date and the Author from the post? (3 posts)

  1. Ovidiuxxxc
    Posted 3 years ago #

    I want to remove the Date and the Author from the post because it appears on Google. I want to display directly the content of the post on the Google Search Engine.

    Here is my WordPress Theme. (you can get it, it is directly download)

    I am not an WordPress expert, so I can not figure this out with other topics on WordPress Support Forum.

    If someone is able to help me, thank you. Just let me know what I should remove from my /wp-admin/

  2. Mohamad Hanafi
    Posted 3 years ago #

    Hi, Ovidiux

    Try find put
    function posted_on()

    (or seem like this function) in function.php
    Path: wp-content/themes/<theme-name>/

    Then comment it out.



  3. Ovidiuxxxc
    Posted 3 years ago #

    - I have figure this out;
    - I removed this codes from index.php;
    - I don't know if I should remove more codes;
    - now, it is working fine.

    <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
    <?php the_time(__('F jS, Y', 'kubrick')) ?>
    <?php $icons[] = ob_get_clean(); ?>
    <?php ob_start(); ?>
    <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon" />
    <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
    <?php $icons[] = ob_get_clean(); ?>

    The Date and the Author, they doesn't appear anymore.
    I want to mention that is depending on what WordPress theme are you using and where the codes are placed on the respective file.

    With pleasure,
    [sig moderated as per the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic