Title: Issues with PHP coding
Last modified: June 15, 2017

---

# Issues with PHP coding

 *  [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * (@mirellalpz3)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/)
 * Hello I am a fairly new with coding php. I can’t seem to get the page working.
   I need help. Page is coming up blank, I need the dates to come up in order.
 * [Large code excerpt removed by moderator per [forum rules](https://make.wordpress.org/support/handbook/forum-welcome/#posting-large-excerpt-of-code).
   Please use [Pastebin](http://pastebin.com) or a [Gist](https://gist.github.com)
   for all large code excerpts, they work better anyway.]
    -  This topic was modified 8 years, 11 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
      Reason: code was breaking forum formatting

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

 *  [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9231235)
 * [@mirellalpz3](https://wordpress.org/support/users/mirellalpz3/), Please post
   your code as per [forum rules](https://make.wordpress.org/support/handbook/forum-welcome/#posting-large-excerpt-of-code).
   Or please define demo url or screenshort which issue you have facing.
 *  Thread Starter [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * (@mirellalpz3)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9233130)
 * <script src=”[https://gist.github.com/anonymous/4e64bdd425c6ab5c2a120a3d9eb9a497.js”></script&gt](https://gist.github.com/anonymous/4e64bdd425c6ab5c2a120a3d9eb9a497.js”></script&gt);
 *  Thread Starter [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * (@mirellalpz3)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9233209)
 * Here is the php in proper format. <script src=”[https://pastebin.com/embed_js/39jw3rM5″></script&gt](https://pastebin.com/embed_js/39jw3rM5″></script&gt);
 *  [Ravikumar Patel](https://wordpress.org/support/users/ravipatel/)
 * (@ravipatel)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9234621)
 * In your code so many issue regarding php syntax.
 * [try this one updated code ](https://pastebin.com/4TCze2Q0) i have fix php issue.(
   but without post & event i can;t test more).
 * IF any issue occurred then reply.
 *  Thread Starter [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * (@mirellalpz3)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9235471)
 * Thank you for your help so far. It is showing the featured event but not the 
   rest. ⌊visionwebsiteevents⌉
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9237656)
 * There appears to be a problem with the query args (starting at line 57 of Ravi’s
   version). They are such that the query will not return anything. You should be
   seeing “Sorry, no posts matched your criteria.” If not, something else is wrong.
   Do you have WP_DEBUG defined as `true` in wp-config.php? You should, so you can
   see any PHP errors immediately.
 * In the query args, ‘meta_type’ is not a valid argument. There is a ‘type’ argument
   that is only used as part of a ‘meta_query’ array. In that context, ‘meta_value_datetime’
   is an improper value. Simply ‘DATETIME’ would be correct.
 * Outside of ‘meta_query’, you need either a ‘meta_value’ or ‘meta_value_num’ argument
   along with a ‘meta_compare’ argument (unless the default ‘=’ is desired) to go
   with ‘meta_key’ in order to have complete, valid meta data criteria as part of
   the query. Since your data is neither CHAR nor NUMERIC, IMO you would be better
   off using ‘meta_query’ instead of ‘meta_key’ etc. See [https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters](https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters)
 *  Thread Starter [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * (@mirellalpz3)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9240832)
 * The issue was not with the query args and I am still having issues thank you 
   moderator. [@ravipatel](https://wordpress.org/support/users/ravipatel/) think
   you can help? [](http://visionmusicmag.com/eventos/)

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

The topic ‘Issues with PHP coding’ is closed to new replies.

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [dates](https://wordpress.org/support/topic-tag/dates/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 8 replies
 * 3 participants
 * Last reply from: [mirellalpz3](https://wordpress.org/support/users/mirellalpz3/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/issues-with-php-coding/#post-9240832)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
