Can't show thumbnails in related post in page

Community Forums Forums Design Tips and Tricks Can't show thumbnails in related post in page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  tomos 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23435

    shohag
    Participant
    Post count: 3

    Hello,

    I want to show thumbnail on related post. see that http://travelingwithkids.com.au/about-bali .

    I’ve made custom page template.

    here is code

    http://pastebin.com/DNXPXzQB

    Can you help me how to show thumbnail on them ?

    Is there any opportunity to show related post anywhere in page content ?

    Thanks in advance.

    Shohag

    #23475

    tomos
    Participant
    Post count: 12

    I want to show thumbnail on related post. see that http://travelingwithkids.com.au/about-bali

    Have you taken a look at maybe using the_post_thumbnail();?

    Is there any opportunity to show related post anywhere in page content ?

    Maybe take a look at writing a shortcode that accepts some parameters such as:

    - category id
    - number of posts to show

    For example your shortcode might look something like [twk-related-posts category="8" posts="4"].

    The shortcode generator over ar Generate WP seems pretty handy and this video tutorial from WP.Tutsplus goes over creating & implementing shortcodes.

    Hope this is of some help.


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

You must be logged in to reply to this topic.