Post thumbnails

Home Forums Languages PHP & MySQL Post thumbnails

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  Anonymous 1 year, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13973

    Luka
    Participant

    I’m trying to make post thumbnails, but I don’t even know where to start. Any ideas?

    #14948

    Vera
    Participant

    Are you using any specific CMS, or did you code your own script?

    If it’s a former, it is possible that is already has a function for this (eg: WordPress has the_post_thumbnail )

    #14949

    Luka
    Participant

    I am using the B-A-B :)

    #14950

    Vera
    Participant

    Well you could do a search in the content field and extract the first image from the post and if the post has no image, display a default one.

    Something like: http://www.phpfreaks.com/forums/index.php?topic=208164.0

    Only you don’t need to use preg_replace but rather preg_match.

    #14951

    Anonymous

    wordpress is powerful..

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

You must be logged in to reply to this topic.