WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to shorten archives displayed and remove add to any image? (7 posts)

  1. tonnyochieng
    Member
    Posted 5 years ago #

    How do i shorten the archives in the homepage, category and monthly archives so that not the full posts are displayed in the list of posts/archives that appeas? I would also like to stop the add to any image from displaying in the lists but only in individual post page. My site is http://post.netspier.net

  2. MichaelH
    Member
    Posted 5 years ago #

    There's a few FAQs that should help in this: http://codex.wordpress.org/FAQ_Layout_and_Design#Text_and_Content_Display

    Not sure about the "add to any image" question. Are you using an ad plugin? Maybe this will help you:
    http://codex.wordpress.org/User:Tomhanna/Adding_Ads_to_Wordpress

  3. tonnyochieng
    Member
    Posted 5 years ago #

    the add to any plugin is the one that enables a reader to email or share a post. i.e. the silver bar below each listed post.

  4. tonnyochieng
    Member
    Posted 5 years ago #

    about the shortening, i want to shorten the posts body to a certain number of characters and maybe add (...) to the end as an indicator that it has been shortened.

  5. MichaelH
    Member
    Posted 5 years ago #

    See template tag, the_content(), and Customizing_the_Read_More to understand how you can use <!--more--> in your posts to dictate the "shortening".

    You may need to check with the plugin author about how to 'stop the add to any image from displaying in the lists but only in individual post page".

  6. tonnyochieng
    Member
    Posted 5 years ago #

    I replaced all the

    get_content()
    tags wit
    get_excerpt()
    in the files archive.php, index.php and results.php and the archives in the respective pages shortened with (...) at the end. As for the add to any plugin image i removed the php command for tags in the pages and the image disappeard with the tags. Single posts appear with all intact which is 100% what i wanted. Thanks for that lead on tags.

  7. tonnyochieng
    Member
    Posted 5 years ago #

    Here is the final result http://post.netspier.net

Topic Closed

This topic has been closed to new replies.

About this Topic