WordPress.org

Forums

Why my Categories's content not URL (7 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I have "write" a content with a image URL link,and can the photo can display in the first page,but when I press the Categories-list, the page only display the word ,the photo can not display, How can I do ? thanks

  2. Beel
    Member
    Posted 10 years ago #

    Use absolute links (src="http://site/path-to-image/image") and not a relative link (src="image")

  3. Kafkaesqui

    Posted 10 years ago #

    Another option is to set links to start at the root or top of your path, using a forward slash at the beginning (src="/images"), or wherever your image directory happens to reside, starting from the root (src="/blog/images").

  4. gzprk
    Member
    Posted 10 years ago #

    thanks , but not absolute path wrong,such as this links,it can display from first page, but can't display from Categories's . I think is a wrong of php function, maybe the function filter this.
    <img src="http://photos.gznet.com/photos/1077891/1077891-mn9LmKFN6O.JPG" alt="" />

  5. Beel
    Member
    Posted 10 years ago #

    Then your category page is probably set to show the_excerpt which will not show the image.

  6. gzprk
    Member
    Posted 10 years ago #

    yes ,I find it the_excerpt() function for this post ,
    what function I can use ?instead of the_excerpt()??
    thanks

  7. gzprk
    Member
    Posted 10 years ago #

    thanks, I use the function of <?php the_content('Read the rest of this entry »'); ?> instead of the_excerpt()
    in the index.php ,the problem has resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.