295 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more


I needed to link to contact page within the content of the homepage, and it has to be in a flexible way (I’m not talking about giving the link just like <a href="&lt;?php bloginfo('url'); ?&gt;/page_id=123" />) I googled for the problem, and I noticed there is a solution with the tag wp_get_nav_menu_item(), but I couldn’t find any documentation for it. Then I solved it via including the footer menu there via &lt;?php wp_nav_menu( array('menu' ?&gt; 'Footer Nav' )); ?&gt; and hiding all menu items except “contact” via css (.menu li a{display:none;} and .menu li:last-child a{display:block etc}) I could do that because the “contact” was the last item of that menu. I wonder does anyone know a better solution or have some info about wp_get_nav_menu_item()?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes