+ Reply to Thread
Results 1 to 5 of 5

 

Thread: Please help - WordPress categories

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    103
    Thanks
    6
    Thanked 6 Times in 6 Posts


    Hi mates,
    I am using WP premium news Woo theme and need to change post display at certain categiry.

    For istance, when you click on ''mobile phones'' category, all posts need to list uder with the picture on the left side and short description on the right side.

    The picture and post title need to be link to the full post content.

    Is there any plugin or any other option to do that. ( I am very bad PHP programer:cry:blush:scared )

    Thank you:tup

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Feb 2010
    Posts
    179
    Thanks
    8
    Thanked 9 Times in 8 Posts
    i dont understand....with the written text..of you daer..

    i would love to help you more..please elaborate..your problem...

    what you want...possibly....paste screen shots..here...may be....

    some other s....will to help you on what you are stuck..at.....

    ping me if you need help in personal...

  3. #3
    babrees's Avatar
    Registered User

    Status
    Offline
    Join Date
    Feb 2007
    Location
    Norfolk
    Posts
    1,578
    Thanks
    142
    Thanked 100 Times in 88 Posts
    Quote Originally Posted by tomica View Post
    Hi mates,
    I am using WP premium news Woo theme and need to change post display at certain categiry.

    For istance, when you click on ''mobile phones'' category, all posts need to list uder with the picture on the left side and short description on the right side.

    The picture and post title need to be link to the full post content.

    Is there any plugin or any other option to do that. ( I am very bad PHP programer:cry:blush:scared )

    Thank you:tup
    You would need to create a new file from archive.php and call it category-#.php # being the category id you want to use that display. Then alter the template layout. I don't use that template, but pm me if you want me to have a look at it.

    Jill

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    103
    Thanks
    6
    Thanked 6 Times in 6 Posts
    Please take a look at this sample: WooThemes Demos

    Than click on the category, I'd like to display my posts as on this theme with the picture, some short text and 'continue reading' link to the full post.

    Now, on my website, posts are displayed all full when you click on some category.

    Hope this can help you understand what I want.


    Thank you mates:tup:tup

  5. #5
    babrees's Avatar
    Registered User

    Status
    Offline
    Join Date
    Feb 2007
    Location
    Norfolk
    Posts
    1,578
    Thanks
    142
    Thanked 100 Times in 88 Posts
    As I mentioned above, make a copy of archive.php and rename it to category-#.php

    Look at the code in the newly made file and find the line that looks like <?php the_content(); ?> Not knowing your theme I do not know what it will be exactly and it may have more code before the ?>

    Change this line to:

    Code:
    <?php if( get_post_meta($post->ID, "thumb", true) ): ?>
       <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>   
    <?php else: ?>
    <?php endif; ?>				
    
    <?php the_excerpt(); ?>

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing Nofollow on Wordpress Categories
    By realfun in forum Affiliate Marketing Lounge
    Replies: 2
    Last Post: 12-08-09, 11:07 AM
  2. Categories Section in Wordpress
    By cclayton in forum Programming
    Replies: 2
    Last Post: 08-01-09, 09:15 PM
  3. Wordpress - customers straying to categories
    By sussexrob in forum Affiliate Marketing Lounge
    Replies: 10
    Last Post: 02-09-08, 09:45 PM
  4. Wordpress categories - help!
    By PrincessConsuela in forum Affiliate Marketing Lounge
    Replies: 1
    Last Post: 24-08-08, 07:25 PM
  5. Listing Sub Categories in Wordpress
    By MortimerJazz in forum Programming
    Replies: 2
    Last Post: 04-03-08, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2