Title: Preston's Replies | WordPress.org

---

# Preston

  [  ](https://wordpress.org/support/users/firebot/)

 *   [Profile](https://wordpress.org/support/users/firebot/)
 *   [Topics Started](https://wordpress.org/support/users/firebot/topics/)
 *   [Replies Created](https://wordpress.org/support/users/firebot/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/firebot/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/firebot/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/firebot/engagements/)
 *   [Favorites](https://wordpress.org/support/users/firebot/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Login With Ajax - Fast Logins, 2FA, Redirects] Create link inside page template to open register modal](https://wordpress.org/support/topic/create-link-inside-page-template-to-open-register-modal/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/create-link-inside-page-template-to-open-register-modal/#post-5484852)
 * Thanks for the help.
 * The same error occurs when using the TwentyFourteen theme with only the Login
   With Ajax plugin turned on.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Promotion Slider] [Plugin: Promotion Slider] Slides overlap when viewing new browser tab then return to tab w/ Promo S](https://wordpress.org/support/topic/plugin-promotion-slider-slides-overlap-when-viewing-new-browser-tab-then-return-to-tab-w-promo-slider/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-promotion-slider-slides-overlap-when-viewing-new-browser-tab-then-return-to-tab-w-promo-slider/#post-2718705)
 * Thanks, it was the theme loading an old version of jQuery. Getting the latest
   version in fixed it!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Adding first, last, current classes automatically to get_pages list](https://wordpress.org/support/topic/adding-first-last-current-classes-automatically-to-get_pages-list/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/adding-first-last-current-classes-automatically-to-get_pages-list/#post-2557540)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get_pages with Custom Field Template plugin filling title attribute](https://wordpress.org/support/topic/get_pages-with-custom-field-template-plugin-filling-title-attribute/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/get_pages-with-custom-field-template-plugin-filling-title-attribute/#post-2553608)
 * The all lowercase letters was CSS related (a thought lapse on my part). So everything
   is working great. Thanks again!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get_pages with Custom Field Template plugin filling title attribute](https://wordpress.org/support/topic/get_pages-with-custom-field-template-plugin-filling-title-attribute/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/get_pages-with-custom-field-template-plugin-filling-title-attribute/#post-2553556)
 * Thanks, 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Only display a block of information in the sidebar if it's filled in](https://wordpress.org/support/topic/only-display-a-block-of-information-in-the-sidebar-if-its-filled-in/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/only-display-a-block-of-information-in-the-sidebar-if-its-filled-in/#post-2241178)
 * Works great, thank you very much.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Only display a block of information in the sidebar if it's filled in](https://wordpress.org/support/topic/only-display-a-block-of-information-in-the-sidebar-if-its-filled-in/)
 *  Thread Starter [Preston](https://wordpress.org/support/users/firebot/)
 * (@firebot)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/only-display-a-block-of-information-in-the-sidebar-if-its-filled-in/#post-2241146)
 * That 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.

Viewing 7 replies - 1 through 7 (of 7 total)