Activity Stream
48,167 MEMBERS
6914 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default How can I make this?

    Hello guys,

    Maybe someone can help me...

    I have a wordpress blog installed and I have many categories, including one with adult content.
    I dont want to show adult images in frontpage, but I want to show when the user is inside the category. How can I do that?

    Heres an exact example of what I want:
    Code: 
    http://ainanas.com
    (you can see that adult posts appears with this image in frontpage)

    Now check the adult category without this image:
    Code: 
    http://ainanas.com/gajas-nanas/
    Please help :-)

    I tried to use excerpt, but the image appears in both places, frontpage and category page, I want to show only on frontpage, like the website above.

    Any advices? Thanks :-)
    Divvy Reviewed by Divvy on . How can I make this? Hello guys, Maybe someone can help me... I have a wordpress blog installed and I have many categories, including one with adult content. I dont want to show adult images in frontpage, but I want to show when the user is inside the category. How can I do that? Heres an exact example of what I want: http://ainanas.com (you can see that adult posts appears with this image in frontpage) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    There are 2 separated files to show the post, right? index.php and category.php

    You can use excerpt like you said and show it only on the index.php file

    or make a new custom field on each post and add that image and show it on index

    PHP Code: 
    <?php 
    if(is_home() ) {  
    //do stuff  

    else {  
    //do stuff  

    ?>

  4.     
    #3
    Member
    Go to wordpress search for plugin:category frontpage

  5.     
    #4
    Member
    Hello guys, thank you for your replies!

    I got an idea, but dont have php knowledges to make this work.

    I want to use a specific image to show in all adult posts and on frontpage only. So my idea is to use the featured image to do that.
    I already installed in my theme and inserted the line of code below in my teaser.php file:
    PHP Code: 
    <a href="<?php atom()->post->URL(); ?>" rel="bookmark" title="<?php atom()->te('Permanent Link: %s'atom()->post->getTitle()); ?>"><?php the_post_thumbnail$size$attr ); ?></a>
    My teaser.php file code:
    http://pastebin.com/66Qi3SSn

    What I need?
    1- Featured image must appear on frontpage only (when featured image appears, the excerpt will be hidding)

    2- When the user visits the adult category, the featured image will not appear, instead, only appear the post excerpt only.

    3- When the user reads the post, the featured image will not appear too....
    Help!?

  6.     
    #5
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    try this http://pastebin.com/fUEAX0kj

    but will show the image for all posts, even if aren't adult

  7.     
    #6
    Member
    Hello my friend, thank you for traying to help me!

    I dont mind to show the image for all posts, because I will use featured image only on adult posts.

    I tested your code and is almost done

    1- Featured image must appear on frontpage only (when featured image appears, the excerpt will be hidding)
    ALMOST DONE! Excerpts is not appearing in any post in my frontpage, I just need to hide excerpts of the category ID 12 or else when the post have a featured image (prefered). Can you do It?

    2- When the user visits the adult category, the featured image will not appear, instead, only appear the post excerpt only.
    DONE!

    3- When the user reads the post, the featured image will not appear too....
    DONE!

  8.     
    #7
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com

  9.     
    #8
    Member
    Once again, thank you for trying to help me.

    I didnt see any difference from my original code, the featured image doesnt appear anywhere.

    EDIT: please wait... I forgot one thing...

  10.     
    #9
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    code edited by me
    PHP Code: 
    <?php if(is_home()&&in_category'12' )) { ?>
    <a href="<?php atom()->post->URL(); ?>" rel="bookmark" title="<?php atom()->te('Permanent Link: %s'atom()->post->getTitle()); ?>"><?php the_post_thumbnail$size$attr ); ?></a>
    <?php } else { ?>
          <?php (is_sticky() && is_home()) ? the_content() : the_excerpt(); ?>
    <?php 
    ?>
    try to change 12 with the category name

  11.     
    #10
    Member
    Is working perfectly !!! Thank you so much my friend! Youre the MAN!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 11th Jul 2012, 07:34 AM
  2. Wordpress, want to make font smaller? and make width bigger
    By jcberry526 in forum Technical Help Desk Support
    Replies: 9
    Last Post: 2nd Nov 2011, 05:54 AM
  3. Replies: 33
    Last Post: 4th Sep 2011, 01:45 PM
  4. Userporn - Make Up to $30 - Upload Adult Videos and Make $$$
    By jessepure in forum File Hosts Official Support
    Replies: 61
    Last Post: 7th Apr 2011, 06:37 PM
BE SOCIAL