Taxonomy Position

Discussion in 'WordPress' started by wps, Feb 19, 2011.

  1. #1
    friends, How can i put taxonomies into text of post?
    what i want h ttp://img135.imageshack.us/i/14483009.jpg
     
    Last edited: Feb 19, 2011
    wps, Feb 19, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am assuming that you have custom taxonomies to begin with?

    If so, then it is simple. The following gets a term list for the custom taxonomy called 'people':

    <?php echo get_the_term_list( $post->ID, 'people', 'People: ', ', ', '' ); ?>
    Code (markup):
    More information from Justin Tadlock's Custom taxonomies in WordPress 2.8 will tell you more. This is a great resource article.
     
    Dodger, Feb 19, 2011 IP
  3. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you for your quick reply,look at the screen please
    h ttp://img135.imageshack.us/i/14483009.jpg
    , I need put image or text on the top-right side of post , I cant do this,
    I always have image and text under my taxonomies..
     
    Last edited: Feb 19, 2011
    wps, Feb 19, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is this what you are trying to position?

    <div class="art-PostContent">
    <?php
    echo $taxo_text;
    ?>
    </div>
    Code (markup):
    If so, move it to the top of the post, then set the class rule for 'art-PostContent' to float:right;
     
    Dodger, Feb 19, 2011 IP
  5. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have already taxonomies on the top of page, i put my code before <div class="art-PostContent">
    I want to be able to put images and write text on the top-right side from taxonomies

    where i must to set the class rule for 'art-PostContent' to float:right; explain me please!
     
    wps, Feb 19, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Is that the DIV that is showing the image? I cannot tell because all you gave me was an image of the whole page. I cannot see the Html/CSS that is being generated.
     
    Dodger, Feb 19, 2011 IP
  7. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    this is from style.css maybe it could help us

     
    wps, Feb 19, 2011 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You still did not answer my question. What is the Html for the image you are trying to position? I am only seeing the taxonomy code and nothing else. A Url to the page in question would help, brother!
     
    Dodger, Feb 19, 2011 IP
  9. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    it is html code of image.

    <a href="http://www.mysite.com/wp-content/uploads/2011/02/1289554833_19.jpg"><img class="size-medium wp-image-193 alignright" title="1289554833_1" src="http://www.mysite.com/wp-content/uploads/2011/02/1289554833_19-234x300.jpg" alt="" width="234" height="300" /></a>
     
    wps, Feb 20, 2011 IP
  10. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Move that code up above your taxonomy code.
     
    Dodger, Feb 20, 2011 IP
  11. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    thank you, Dodger,its work, but i see the same image in all post of site, how i can take different images for all post?
     
    wps, Feb 20, 2011 IP
  12. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #12
    The php code that generates the image is the code that needs to be moved above the taxonomy block. I did not mean for you to cut and paste the Html that is generated from the code into your theme file. Sorry if I confused you, I think I was in a hurry or misunderstood.
     
    Dodger, Feb 21, 2011 IP
  13. wps

    wps Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    thank you for help
     
    wps, Feb 23, 2011 IP