Genesis multiple category custom loop 404s after first page

Provided category names are not changing, and the site is in one language only, you could create two category templates: category-news.php and category-press-releases.php, then everything will pretty much work without you having to fetch the category and including the category__in parameter in the query. Also, you always want to put your add_action calls inside your … Read more

wp_enqueue_scripts leads to error

I was using a genesis child theme so had to edit my order_tracking() function a little. get_template_directory_uri() gives the URL to the current child theme, combining that with the javascript filename did the trick. Here’s what got it working: function order_tracking() { global $post; if ( $post->ID == 19851 ) { wp_enqueue_script(‘ordertracking’, get_template_directory_uri(). “/ordertracking.js”, array(‘jquery’) … Read more

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