Preston
Forum Replies Created
-
Thanks for the help.
The same error occurs when using the TwentyFourteen theme with only the Login With Ajax plugin turned on.
Thanks, it was the theme loading an old version of jQuery. Getting the latest version in fixed it!
Forum: Hacks
In reply to: Adding first, last, current classes automatically to get_pages listI decided to use some jQuery to add the first/last classes to the elements. So really all I need now is a way to add “active” on the current page. There may even be a jQuery solution for that (I will be looking later), but I think doing it through WordPress would be the better option.
Here’s the jQuery code for adding first/last, just for reference in case anyone stumbles on this thread looking for help.
<script type="text/javascript"> $(window).load(function() { $('ul.top-nav li:first-child').addClass('first'); }); $(window).load(function() { $('ul.top-nav li:last-child').addClass('last'); }); </script>
Forum: Hacks
In reply to: get_pages with Custom Field Template plugin filling title attributeThe all lowercase letters was CSS related (a thought lapse on my part). So everything is working great. Thanks again!
Forum: Hacks
In reply to: get_pages with Custom Field Template plugin filling title attributeThanks, that got me in the right direction.
get_post_meta($pagg->ID, 'Tooltip Text', true)
works well, except it makes all capital letters lower case. I’m not sure if it’s related to this or something else.Using only
get_post_meta($pagg->ID, 'Tooltip Text')
just returned “array” from all of the fields, regardless of what was in them.Forum: Hacks
In reply to: Only display a block of information in the sidebar if it's filled inWorks great, thank you very much.
Forum: Hacks
In reply to: Only display a block of information in the sidebar if it's filled inThat worked great, thank you.
If I wanted to add a third piece of information, would I just add another “if” statement?
Also, would there be a way to check if all of the “seller” fields are empty, and if they are all empty, then hide this block of text, too:
<?php _e('For questions about the property, please contact the seller:','language');?>
Thanks.