• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kartiktalwar

    (@kartiktalwar)

    Sorry i fotgot to put the backticks

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

    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

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

    Thread Starter kartiktalwar

    (@kartiktalwar)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Page Listings’ is closed to new replies.