Title: greencode's Replies - page 26 | WordPress.org

---

# greencode

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 376 through 390 (of 536 total)

[←](https://wordpress.org/support/users/greencode/replies/page/25/?output_format=md)
[1](https://wordpress.org/support/users/greencode/replies/?output_format=md) [2](https://wordpress.org/support/users/greencode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/greencode/replies/page/3/?output_format=md)…
[25](https://wordpress.org/support/users/greencode/replies/page/25/?output_format=md)
26 [27](https://wordpress.org/support/users/greencode/replies/page/27/?output_format=md)…
[34](https://wordpress.org/support/users/greencode/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/greencode/replies/page/35/?output_format=md)
[36](https://wordpress.org/support/users/greencode/replies/page/36/?output_format=md)
[→](https://wordpress.org/support/users/greencode/replies/page/27/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field with number](https://wordpress.org/support/topic/sort-posts-by-custom-field-with-number/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-with-number/#post-2157645)
 * Okay, this seems to work…
 *     ```
       <?php
       $args = array(
           'orderby' => 'meta_value',
           'meta_key' => 'hm-slider-order',
           'order' => 'ASC',
           'meta_query' => array(
               array(
                   'key' => 'hm-featured',
                   'value' => 'true',
                   'compare' => 'LIKE'
               )
           )
       );
       query_posts($args);
       ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Fields] WordPress Settings Menu Disappears](https://wordpress.org/support/topic/wordpress-settings-menu-disappears/)
 *  [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wordpress-settings-menu-disappears/#post-2155898)
 * I have it whereby my Pages Admin panel has vanished! I’m a little too scared 
   to deactivate magic fields in case any of my settings are lost. I have to access
   the Pages by going into the Dashboard but the menu item for Pages in the left
   menu is no longer visible.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mingle Forum] Official Site Down](https://wordpress.org/support/topic/official-site-down/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/official-site-down/page/3/#post-2076306)
 * Okay, fine so is this what you’re currently using and do you find it better than
   Mingle?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mingle Forum] Official Site Down](https://wordpress.org/support/topic/official-site-down/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/official-site-down/page/2/#post-2076304)
 * I don’t understand why you’ve just added a link to another forum plugin without
   expanding as to why you’ve added it?!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mingle Forum] Official Site Down](https://wordpress.org/support/topic/official-site-down/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/official-site-down/page/2/#post-2076302)
 * Urm, care to expand??
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pre 1970 dates](https://wordpress.org/support/topic/pre-1970-dates/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/pre-1970-dates/#post-2109740)
 * Now then I’ve looked around and found this post [http://wordpress.org/support/topic/pre-1970-dates-no-longer-handled-correctly?replies=12](http://wordpress.org/support/topic/pre-1970-dates-no-longer-handled-correctly?replies=12)
   which says to comment out this code in the wp-includes/functions.php file:
 *     ```
       if ( false === $i || intval($i) < 0 ) {
       		if ( ! $gmt )
       			$i = current_time( 'timestamp' );
       		else
       			$i = time();
       		// we should not let date() interfere with our
       		// specially computed timestamp
       		$gmt = true;
       	}
       ```
   
 * which works perfectly and now dates are displaying as far back as I need i.e.
   1932 but a couple of things:
 * 1. Is it okay to do this i.e. will it affects anything else and…
    2. Is there
   are a better way of doing this so when I update WordPress I don’t have to update
   that file each time?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts where custom field is true](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/#post-2107697)
 * Spot on. Thanks so much for all of your help – really appreciated. There was 
   just a missing comma after ‘true’ but all’s working well now.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts where custom field is true](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/#post-2107588)
 * I’ve used this code and it seems to be working okay but you say that meta_key
   is depreciated:
 * `<?php query_posts( 'orderby=title&order=ASC&meta_key=featured&meta_value=true');?
   >`
 * This then only shows posts where the custom field of “featured” has the content“
   true” entered in the field.
 * I would be grateful for any suggestions though.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts where custom field is true](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/#post-2107577)
 * Figured out where the error was:
 *     ```
       <?php
       $args = array(
           'orderby' => 'title',
           'order' => 'ASC',
           'meta_query' => array(
               array  (
                   'key' => 'featured',
                   'value'=>'true'
               )
           )
       );
       query_posts( '$args' );
       ?>
       ```
   
 * But that just seems to be bringing in any post where the “featured” custom field
   has content. Whereas I would like it where only posts with the text value of “
   true” are added.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts where custom field is true](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/#post-2107574)
 * Umm, I got an error: Parse error: syntax error, unexpected ‘=’, expecting ‘)’
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts where custom field is true](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/query_posts-where-custom-field-is-true/#post-2107565)
 * Thanks for this. How would I go about only showing posts where the value of that
   custom field was “true”? I’ve tried the following:
 *     ```
       <?php
       $args = array(
       'orderby' => 'title',
       'order' => 'ASC',
       'meta_query' => array('key' => 'featured', 'value'=>'true')
       );
       ?>
       <?php query_posts( '$args' ); ?>
       ```
   
 * But that doesn’t show anything.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mingle Forum] Display latest forum post?](https://wordpress.org/support/topic/display-latest-forum-post/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/display-latest-forum-post/#post-2087503)
 * Hi cartpauj. Not sure why your posts keep disappearing but if you see this could
   you guide me – roughly – to what line number the activity thread is on. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mingle Forum] Display latest forum post?](https://wordpress.org/support/topic/display-latest-forum-post/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/display-latest-forum-post/#post-2087500)
 * Anyone?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [External Javascript not working](https://wordpress.org/support/topic/external-javascript-not-working/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/external-javascript-not-working/#post-2072917)
 * Thanks so much to both of you. I just added a checker script and managed to find
   the problem. It was a function that I’d included that decided to break everything
   else! Good idea though to add a very simple script and make sure that’s working
   fully in order to check more complex scripts.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [External Javascript not working](https://wordpress.org/support/topic/external-javascript-not-working/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/external-javascript-not-working/#post-2072914)
 * Hi. Thanks for your help. What do you mean about adding an alert to the first
   function?

Viewing 15 replies - 376 through 390 (of 536 total)

[←](https://wordpress.org/support/users/greencode/replies/page/25/?output_format=md)
[1](https://wordpress.org/support/users/greencode/replies/?output_format=md) [2](https://wordpress.org/support/users/greencode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/greencode/replies/page/3/?output_format=md)…
[25](https://wordpress.org/support/users/greencode/replies/page/25/?output_format=md)
26 [27](https://wordpress.org/support/users/greencode/replies/page/27/?output_format=md)…
[34](https://wordpress.org/support/users/greencode/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/greencode/replies/page/35/?output_format=md)
[36](https://wordpress.org/support/users/greencode/replies/page/36/?output_format=md)
[→](https://wordpress.org/support/users/greencode/replies/page/27/?output_format=md)