Forums

[resolved] additional attribtues to page links: how? (3 posts)

  1. pixeline
    Member
    Posted 3 years ago #

    Hi!

    I would like to be able to control the title attributes, as well as the link text of the link menu generated via the wp_list_pages() function.

    Is there a plugin that allows to do that? I considered using the page's additional fields but if i read the doc correctly, it's not possible to retrieve the data and output the html markup i would like to have, which is:

    <li><a href="link1.html" title="This is a very long description of what's beyond that click">
                            This is the page title<br />
                        <span class="link-description">this is a short description of what's beyond that click</span></a>
                    </li>

    Anybody who has an idea on how to get my list of page links rendered like this html markup will be blessed with eternal love,nothing less.

  2. stvwlf
    Member
    Posted 3 years ago #

  3. pixeline
    Member
    Posted 3 years ago #

    neat! Exactly what i needed. I tried the other alternative too (pages list plus plugin) but this one is the most flexible.

Topic Closed

This topic has been closed to new replies.

About this Topic