• I would like to remove anchor tags from certain levels of the wp-list-pages template tag and cannot find a way how to do this.

    For example, I only want the bottom level list items on the following page to have anchor tags wrapped around the text (the ones with the web cam icons on them):

    http://jav.towerscape.co.uk/cameras/north-west/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Page Lists Plus lets you unlink items in wp_list_pages() output. Only thing to watch is that it will unlink those items in all page lists.

    – Tim

    Thread Starter johnasp

    (@johnasp)

    Thanks Tim, I’ve just installed your plugin. I’m a bit confused as to how to achieve what I want though. On this page:

    http://jav.towerscape.co.uk/cameras/north-east/

    I would like only the list item with the web cam icon to act as links. All the other list item should not be links, just text.

    Is this possible?

    Thanks…John

    John,

    On the Settings > Page Lists Plus page, check the “Link (lets you unlink Pages without removing them from your Page lists)” box and save.

    Then for each page that you want to unlink, go to its edit screen, uncheck the box labelled “If this box is checked then this Page will be linked in lists generated using wp_list_pages()”, and save.

    Hope that does what you need.

    – Tim

    Thread Starter johnasp

    (@johnasp)

    Great – Thanks a lot Tim, worked a treat! And thanks for your excellent plugin.

    hi Tim,
    I need to do exactly what wp_list_pages() does, but not using an unordered list – simply concatenate the items using a period “,”, therefore i use get_post() to do that, and then loop through the results.
    Now, i also use your plugin on other parts of the site, and i’ve marked one page as not to be linked – simply displayed as a text.
    i would like to know how i can get the info that the item should not be linked. Something like : $post->notLinked= true ?

    thanks!

    Alex

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove anchor tags from WP-LIST-PAGES’ is closed to new replies.