Is it possible to customize the layout of Gallery Shortcode?

You may complete override your gallery shortcode using the filter post_gallery. The return is displayed in your page and no further processing of the shortcode is done. You may iterarate through the image attached to your post to build your own gallery. See the implementation of gallery shortcode here: http://core.trac.wordpress.org/browser/trunk/wp-includes/media.php#L758 EDIT: There are some plugins … Read more

How to Disable Color Options?

In TwentyTen’s functions.php the custom background is added in twentyten_setup() which is called on the action ‘after_setup_theme’. So, in your child theme, the following should remove the option completely: // Higher priority to work after TwentyTen add_action( ‘after_setup_theme’, ‘wpse12934_remove_custom_background’, 20 ); function wpse12934_remove_custom_background() { remove_custom_background(); }

How to reduce repetitive code

You can define your own custom functions in PHP just like you would in JavaScript. Here’s your code example rewritten using a function: $page = get_page_by_title(‘Excerpts Showreel’); <– This piece of code will change // the code below will never change. function get_my_content( $page ) { $my_id = $page; $post_id = get_post($my_id, ARRAY_A); $title = … Read more

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