How to change the background color of my header dynamically based on a Custom Posts types color value?

Because my neighborhoods were the only pages that required custom header colors i decided to just include its custom header within the single-neighborhood.php page so that the top header container, that was wrapping the navigation, logo, etc., would reflect the custom color chosen from the custom fields in the admin. It was the only way … Read more

Sorting the portfolio by an ACF? [closed]

I just did someting like this with my portfolio. Here’s what I used to get mine working: $args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => ‘-1’, ‘meta_key’ => ‘date_received’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘DESC’ ); remove_all_filters(‘posts_orderby’); $query = new WP_query($args); I have a CPT and using ACF datepicker called “date_received”. I had a lot … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)