1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

NEED your help With Categories PLEASE PLEASE :)))

Discussion in 'WordPress' started by sundaybrew, Jan 8, 2014.

  1. #1
    Hello

    Can anyone provide me code, or help me do this with wordpress category pages?

    I would like to display the "featured image" of the first post and then a couple of other titles from that category as shown in this screenshot below,

    Thanks in advance, I got some code, for the links, but need help,


    [​IMG]
     
    sundaybrew, Jan 8, 2014 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    hello there,

    you can use the Special Recent Posts : Link Then you can tweak the CSS in order to display the posts like the way in the picture.

    Goodluck
     
    themes4all, Jan 10, 2014 IP
    sundaybrew likes this.
  3. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #3

    Thanks, but after looking at that plugin, it seems that does not offer a GRID view as I need such ;)
     
    sundaybrew, Jan 10, 2014 IP
  4. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #4
    ok, so in this case you will really have to edit your theme.. if you know about the wordpress Loop and CSS, so this article will suit your needs : Link

    Goodluck
     
    themes4all, Jan 10, 2014 IP
    sundaybrew likes this.
  5. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #5

    Thank you very much for the link, do you know by any chance, how I could adjust that code or should I post that in the code forum?
     
    sundaybrew, Jan 11, 2014 IP
    themes4all likes this.
  6. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #6
    in fact it's too easy to integrate this code in your theme, you just have to know about the CSS and your theme thumbnails size in order to adjust the code.

    Don't edit your theme directly, install worpdress locally.. read this article : How to install wordpress locally.

    The loop in worpdress is this :

    if(have_posts()) : while(have_posts()) : the_post();
    ?>


    open your theme index.php file and add the code like in step one, then follow the other steps to add the css and the main code that will display the posts with thumnails... when you are sure that everything show up as you want so you can edit your current theme by adding the same codes you tested locally :)

    Goodluck
     
    Last edited: Jan 12, 2014
    themes4all, Jan 12, 2014 IP