Articles of themes

Recommendations for books/resource to get started with wordpress 3 development (plugins/themes)

i am looking for learning resources to get started with wordpress 3 (i’d like to learn the latest) plugin/theme development. i also looked at Recommendations for an In-Depth WordPress Book? i am looking for recommendations on which book i should get. considering i am looking for something for wordpress 3 Professional WordPress – i am […]

I am trying to output portfolio items with a picture. This code doesn't seem to be working. What am I doing wrong?

<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query(‘showposts=21&post_type=portfolio’.’&paged=’.$paged); $count = 0; while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div id=”post-<?php the_ID(); ?>” class=”boxx artistboxx one-third column <? php if ($count == 0) { echo ‘alpha’; } ?> <?php if ($count == 2) { echo ‘omega’; } ?>”> <a href=”<?php the_permalink() ?>” title=”<?php the_title_attribute(); […]

Copying theme from Localhost to Live does not copy all theme settings with it?

This has happened on a number of occasions now where I move my site from Localhost to Live environment and the theme settings such as the logo, and other settings are not copied with it, so I am almost have to rebuild the site twice sometimes. Responsive is one example where this is happening as […]

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called “review” and I have used Press Permit to create limited user accounts that can modifying some parts of these review pages. I wanted […]

Switch to other theme at URL

I want to switch to another theme at when a user visits Then, redirect mobile users to with htaccess based on their user-agent. I have the htaccess redirect rules and it is working for me. But how do I switch to mobile theme based on the URL? The Virtual theme plugin is a […]

Returning Variables back into a template

If I put a function that I want to use in a template I can put it into functions.php function myfunction(){ echo ‘My String’; } add_action(‘myfunction’,’myfunction’); and in a template file put: do_action(‘myfunction’); This appears to only work if writing something out to the screen. If I wanted to return a variable instead to the […]

Why are my sidebars not registering in unit tests

I am trying to unit test the function I’m using in a theme to register sidebars. Here is the function from functions.php. function fp_register_sidebars() { register_sidebar( array( ‘name’ => __( ‘Sidebar 1’, ‘fp’ ), ‘id’ => ‘sidebar1’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4 class=”widget-title”>’, ‘after_title’ => ‘</h4>’ ) ); […]

How do I copy my Parent Templates to my Child Templates?

I’m trying to customize the Home Page of a Responsive Theme template. I had started with the Responsive theme and then found out that I had to do customizations on a child theme, so I downloaded the Responsive Child Theme from and uploaded it to my website. When I first went to Dashboard > […]

Cannot get full thumbnail size using the_post_thumbnail

I cannot get the full (unmodified) image size using the_post_thumbnail( ‘full’ ); I have also tried: the_post_thumbnail(); It still returns the cropped image. I can see that the unmodified size is uploaded on the server and there is no problem with that. I checked using print_r(get_intermediate_image_sizes()); And it returns following sizes: Array ( [0] => […]

Change logo on each page of University Hub theme

I’m using the University Hub theme and I searched a lot and didn’t found a solution. I want to change the main logo on each page of the site. I managed to change with CSS the header background color but for the logo it seems I need a custom solution for this theme, but […]