What are the Entry classes for?

Those are classes required by a particular microformat. I personally find it annoying that they are built into the Core, meaning that if you don’t want to support that microformat you have to take steps to remove it or have incomplete meta-data in the markup. However, if you do wish to support that microformat, the … Read more

How to show post from category select

It looks like you are trying to model this on theme options code. You can’t do that. That is backend code. As written, this question is very broad– I am tempted to vote to close as “too broad”– but I will offer bare bones code to get you started: echo ‘<form method=”post”>’; wp_dropdown_categories(); echo ‘<input … Read more

Can I have two different theme for two different language?

A WordPress Multi-site can handle multiple languages with individual themes and plugins activ. It’s like having multiple sites, one for every language, within one Installation. Every Site can have it’s own design, set of activ plugins and users. Read troth Method No. 5 on this Page for Details and Plugins that can help: http://codex.wordpress.org/Multilingual_WordPress

How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]

I would do something similar to this: return ‘<div class=”slideshow”>’.do_shortcode( ‘.'”]’ ).'</div>’; In other words, wrap around the existing short code instead of ending up with a frankenstein version of it. You can then use the slideshow div to select against using jquery and whichever javascript gallery you want to use. How you would do … Read more

How to make theme elements customizable in wordpress?

As per comments: this is what the Customizer API is for. In the case of the header there are a dozen parameters to tweak the behaviour with. Like this: $defaults = array( ‘default-image’ => ”, ‘width’ => 0, ‘height’ => 0, ‘flex-height’ => false, ‘flex-width’ => false, ‘uploads’ => true, ‘random-default’ => false, ‘header-text’ => … Read more

Injecting a custom sql query into a page/theme

The hooks you are looking for can be found in the WordPress Codex WP_Query – Filters: Filters posts_distinct – Alters SQL ‘DISTINCTROW’ clause to the query that returns the post array. posts_groupby – Alters SQL ‘GROUP BY’ clause of the query that returns the post array. posts_join – Alters SQL ‘JOIN’ clause of the query … Read more

How to show part of the_content?

Check out the WordPress Codex reference page for the_excerpt() as it is a built-in way of doing what you’re looking to accomplish: http://codex.wordpress.org/Function_Reference/the_excerpt EDIT: it also has an example for shortening the excerpt beyond the default length.