A little code for Wordpress
Posted: Mon Aug 15, 2011 2:49 am
Hi,
I know nothing of PHP and I can't get anyone on the Wordpress forums to help. Here is what I have:
This code causes a menu of links to display on one of my site pages:
All this does is show the links in an unordered list. Since these links that I show are current news items, I want to display the date that I created the link to show up before the a tag. Wordpress site says that text can be inserted before the link by using before => 'sample text' but the text is the same and I can't modify it. What would I need to do in order to get the current date (or date the link was created in the menu) to show up before the link.
I don't think that it would be too hard for someone who knows a little about WP, but if anyone has some extra time and can help, here is the page that describes what can be added to the code above: http://codex.wordpress.org/Function_Ref ... p_nav_menu
I know nothing of PHP and I can't get anyone on the Wordpress forums to help. Here is what I have:
This code causes a menu of links to display on one of my site pages:
Code: Select all
<?php wp_nav_menu(array('menu' => '144')); ?>
I don't think that it would be too hard for someone who knows a little about WP, but if anyone has some extra time and can help, here is the page that describes what can be added to the code above: http://codex.wordpress.org/Function_Ref ... p_nav_menu