WordPress i18n in Array throws Error

This is a PHP issue, not specific to WordPress. PHP does not allow you to declare a property as an expression. It should be a literal. So you can not call a function inside a property declararion. (see Invalid property declarations in http://php.net/manual/en/language.oop5.properties.php) The solution is to create a getter method and use it instead. … Read more

Redirect to another page using contact form 7? [closed]

Redirect to another page using contact form 7? [closed]

How to use an array of categories as a dropdown?

Try this, $categories_array = array(); $categories = get_categories(); foreach( $categories as $category ){ $categories_array[] = $category->term_id; } array( ‘param_name’ => ‘category_id’, ‘type’ => ‘dropdown’, ‘value’ => $categories_array, // here I’m stuck ‘heading’ => __(‘Category filter:’, ‘overmax’), ‘description’ => ”, ‘holder’ => ‘div’, ‘class’ => ” ),

Query all posts if multiple meta key don’t exist

global $wpdb; $excludeposts = “SELECT * FROM $wpdb->posts WHERE $wpdb->posts.post_status=”publish” AND meta_key NOT LIKE %aa_% ORDER BY post_date DESC “; $main_query = new WP_Query( array( ‘post__not_in’ => $excludeposts, ‘paged’ => $paged ) ); while ($main_query->have_posts()) : $main_query->the_post(); //Stuff… endwhile; //hope this helps

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