# August 31, 2021

# Timber/Twig and WP Research

# Rollbar testing

# TMZ K12 Listing

  • realized querying a bunch of ACF checkboxes is trickier than I thought since it returns an array of checked values
$args = array(
	'post_type'		=> 'food_products',
	'post_status' => 'publish',
	'posts_per_page' => 9, 
	'orderby' => 'title', 
	'order' => 'ASC', 
	'paged' => $paged,
	'meta_query'	=> array(
		'relationship' => 'AND',
		array(
			'key' => 'other',
			'value' => serialize( strval( 2 ) ),
			'compare' => 'LIKE'
		),
		array(
			'key'	 	=> 'product_category',
			'value'	  	=> $category_value, // product category value, see above
			'compare' 	=> 'IN',
		),
	),
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

So... serializing the value allows a LIKE comparison. Works okay, ... I'm pretty sure.

# SEM Client Requested Code

  • had a video meeting
  • probably the reason the code was crashing was because that page wasn't using the standard header where that header code was
  • Plan on putting thier code in a div above the footer and the third party will style it?
    • I dunno, but it'll be on them eventually.
    • for now, it'll just be collecting data and not showing anything.
Last Updated: 9/21/2021, 8:32:13 PM