171 reputation
1314
bio website heavymark.com
location Greater Boston
age
visits member for 4 years, 2 months
seen Jul 1 at 3:45

Building strong impressions in Greater Boston.


Nov
4
comment How to add a data attribute to a WordPress menu item
Thanks for this! I'm not quite sure I understand how to get the $item ID for my particular menu item however. In your example the 2220 is also the same as your url "dev.rarst.net/?p=2220";. My link I want to add the data-attribute to doesn't go to another wordpress url but rather is href="#ContactForm". Based on your example above I googled more and tried running echo var_export($GLOBALS['post'], TRUE); but when I look near the invidual menu item I don't see any unique ID. Can you clarify? Or in "if ( 2220 == $item['ID'] )" Thanks in advance!
Nov
4
awarded  Quorum
Nov
4
asked How to add a data attribute to a WordPress menu item
Sep
3
awarded  Yearling
Mar
29
awarded  Notable Question
Oct
20
awarded  Popular Question
Jul
16
comment Unable to reorder the calendar using the WP Calendar plugin
Correct, in the instructions it says, "orderdir => ASC An array of sort directions (asc or desc). Use the same key as in the array orderby to join the right field." but using them both still does not change the order sadly.
Jul
15
revised Unable to reorder the calendar using the WP Calendar plugin
added 369 characters in body
Jul
15
comment Unable to reorder the calendar using the WP Calendar plugin
Thanks Kaiser. Hopefully I can earn another 9 points so I will be able to add a bounty to this question, since I've been trying to figure it out for weeks.
Jul
15
asked Unable to reorder the calendar using the WP Calendar plugin
May
25
awarded  Scholar
May
25
accepted Show All Children of WordPress Menu
May
25
answered Show All Children of WordPress Menu
May
25
revised Show All Children of WordPress Menu
Changed 2 to a 0 for unlimited depth.
May
24
revised Show All Children of WordPress Menu
added 471 characters in body
May
24
revised Show All Children of WordPress Menu
edited tags
May
24
comment Show All Children of WordPress Menu
@goldeenapples, The original version I posted provides no errors and works however it does not show the sub sub menu items. xLRDs code provided produced a 500 error. Your revised produces the same results as my initial copy where it works but does not show the sub sub items (which this post is for). Or do you solve it and I'm grabbing a wrong revision? Thanks!
May
24
comment Show All Children of WordPress Menu
xLRDxREVENGEx, To note, the 500 error came from your line: if ($max_depth db_fields['id'];
May
24
awarded  Commentator
May
24
awarded  Cleanup