#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0

    Display terms as text, not link


    Hi folks,

    I've got a tiny issue. I want to display terms as "text" and not as a "link". The code is
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    1) Please edit your post and enclose your code in [ PHP ] tags. See ManiacDan's New User Guide.
    2) Since I don't see anything that is generating a link, you need to be more specific. What do you mean by text instead of a link? Show HTML examples of what you get vs. what you want.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    thanks for the reply.

    At the bottom you'll see "apartment amenities". The amenities listed are all displayed as a link but I want to display as text.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    What I meant was that the code you posted does not generate any links. You need to post the code that produces those links. Off hand I'd say simply remove the '<a>' tags surrounding the text. But without seeing that code I can't say for sure.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    That's actually the entire code for that part.

    What's about this part:
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    Nope. Somewhere there has to be code that generates something like:

    <a href="..... > some text</a>

    That is what makes "some text" into a link. To remove the link just remove the <a> tags as I said.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    Unfortunately no <a> tag.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    Its there. Here is the HTML source from your page that needs to be fixed.

    <a href="/apartment-amenities/general/hardwood-floors" rel="tag" title="General">Hardwood Floors</a>

    That obviously must exist somewhere since it is being output.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    Yes, it's automatically generated. It's nothing I typed into the code. The PHP code I sent in the beginning produces this output.
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    Then it must be hard coded in the HTML somewhere and not produced by any PHP code. It then becomes an HTML question not a PHP question. In either case you have the answer. Just find it and fix it.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    when I replace the whole shown code with the following one it works... but it also removes other stuff I need hence I need another solution:
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,464
    Rep Power
    594
    Then you have not posted all the necessary code. For example, where is $node defined and where is it set?
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  24. #13
  25. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0
    Somehow I think that this part makes the link

    I accomplished to remove the links by rewriting this code but it also shows some errors.
  26. #14
  27. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Posts
    2,549
    Rep Power
    2337
    Well will you look at that? You figured it out....good job.
    I ♥ ManiacDan & requinix

    This is a sig, and not necessarily a comment on the OP:
    Please don't be a help vampire!

IMN logo majestic logo threadwatch logo seochat tools logo