Theme Translation?

Translation files must be named {locale}.po (e.g. en_US.po in order to be recognized. Rename your language translation file accordingly. See more in the Codex: i18n for developers.

Comments not displaying after changing theme

After the kerfuffle of logging in and acquiring the theme, I got to the code: $comm = get_option( ‘woo_comments’ ); if ( ‘open’ == $post->comment_status && ($comm == ‘post’ || $comm == ‘both’ ) ) { comments_template( ”, true ); } Your comments are not showing because in the woothemes settings, they have not been … Read more

enqueue_script doesn’t work with HTML5 blank theme

I’m not sure but it might have something to do with the html5blank_protocol_relative() function used by HTML5 Blank Theme. You could try removing the filters at L# 382 & 383 of the functions.php file. // Protocol relative URLs for enqueued scripts add_filter( ‘script_loader_src’, ‘html5blank_protocol_relative’ ); // Protocol relative URLs for enqueued styles add_filter( ‘style_loader_src’ , … Read more

Adding a template in WPTouch

As WPTouch uses its own theme, we can’t hardcode certain functionality inside the regular theme, neither in a page/post template nor functions.php. So, a custom plugin is needed and the desired output made out of a Shortcode. Also, make sure WPTouch Restricted Mode is turned off in Advanced Options > Advanced Settings. But probably this … Read more

How to get ONLY the URL of the image that show_media_header returns?

Try this Dynamic Header plugin function: get_media_header_url() instead of this one: show_media_header() It is defined as function get_media_header_url() { global $post; $post_id = $post->ID; //Declare the wpdb var and table name and run the query to see if there is a media object associated with this post global $wpdb; $table_name = $wpdb->prefix . “custom_headers”; $check_q … Read more

Remove updates text on plugin or themes list page

Add define(‘DISALLOW_FILE_MODS’,true); to your wp-config.php file. This will block users being able to use the plugin and theme installation/update functionality from the WordPress admin area. Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on it’s own DISALLOW_FILE_MODS will have the same effect). http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants … Read more

first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]

I can’t add comments yet, but do you get what Milo is saying? Just look at this section and it is as if there are no closing or tags for the classes post and post-preview. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class=”post-image”> <?php if ( has_post_thumbnail() ) … Read more

plugin inside a wordpress theme

This question is misleading, I’m not sure you understand how Themes/Plugins work. It’s not that you have a plugin inside the theme. Rather the theme has plugin like features (or custom functionality). I personally find this to be bad practice and prefer when themes come with plugins instead of trying to bundle it all together. … Read more

Get meta field value of all catgories

If you’d use the get_categories() function to get all the categories, you can then loop through them. Partial pseudo code, but this will do the trick: $categories = get_categories( array() ); $colors = array(); foreach ( $categories as $category ) { $cat_meta = get_option( ‘meta_field_’ . $category->slug ); if (isset($cat_meta[‘color’])){ $colors[ $category->term_id ] = $cat_meta[‘color’]; … Read more