« first day (2384 days earlier)      last day (2549 days later) » 

11:23 AM
to be fair Drupal is transitioning from their legacy to a modern component–centric architecture and they are planning for much more mild backwards compat roadmap.
if WordPress tried to transition to modern PHP... hurts to imagine :)
 
 
3 hours later…
1:56 PM
@all Anyone have recent experience with WP REST API? I have been out of touch with this project for a long time. Can't seem to figure out how to filter CPT output with taxonomy & term pair.
 
2:40 PM
@Sisir, some other people will have different views, but IMO just make your own endpoint instead of diving into the rabbit hole of the rest api.
 
2:57 PM
show_in_rest must be true, and the endpoint is different
but i imagine it works the same way as the posts endpoint
 
3:43 PM
Does anyone else get SUPER generic PHP Errors in PHP7?
Literally full page `die();` and all it says is this `
<h1>Error thrown</h1><p>Cannot use object of type MBE\Post_Featured_Image as array</p>` Doesn't give me a line number or filename...
 
Do I technically need to call global $wp_query or global $post to use them? They seem to be available / in scope in template files without global.
 
4:08 PM
WP should make typical template-intended globals available if template file is loaded by WP itself
 
4:20 PM
Neat, would you consider it a best practice to define it at the top of the file anyway whenever it's used?
 
I would use Twig
 
 
1 hour later…
5:28 PM
@Howdy_McGee I've always globalled variables as needed or at the top of the file if it's going to be used everywhere in the file.
Same thing for functions. Top of the function if used everywhere in the function, or as needed in the function if its only needed conditionally for example.
 
 
2 hours later…
7:47 PM
@TomJNowell Thanks! It seem we can't pass term_id to get a post/CPT endpoint. The endpoint cpt/filter?taxnomy-slug=<term-slug> You can not pass id in the term-slug it fails. They dropped filter param so I guess it will come back with more proper structure..
 

« first day (2384 days earlier)      last day (2549 days later) »