WordPress.org

Ready to get started?Download WordPress

Forums

Custom Page Listings (4 posts)

  1. kartiktalwar
    Member
    Posted 5 years ago #

    I created a template and in the navigation menu I am having trouble with listing pages because of the li tags in the function.

    I need a way or a php snippet that will give me control over the name of the page and the url so I can implement it in this way.

    <div>
    <span>About</span>
    </div>

    Thanks

  2. kartiktalwar
    Member
    Posted 5 years ago #

    Sorry i fotgot to put the backticks

    <div>
    <a href="http://mysite.com/about" title="About"><span>About</span></a>
    </div>

  3. stvwlf
    Member
    Posted 5 years ago #

    Check the page-lists-plus plugin - it uses lists, but it allows you to embed spans in several places in the LI and A tags

    http://www.technokinetics.com/plugins/page-lists-plus/

  4. kartiktalwar
    Member
    Posted 5 years ago #

    Thanks for the link; but this is still utilizing the <li> tags which is what I dont want.

    I have seen custom php codes that directly connect to the database by using the wp_query function to display the posts and categories and I am looking for a similar way which will give me 2 basic variables the name and the url which I can put them in the template anyway I want.

    Is there a way to do this ?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic