A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

learn more… | top users | synonyms (2)

1
vote
3answers
82 views

Some doubts about how to show posts in a custom theme?

I am pretty new in WordPress theme development and I have some doubt about this WP function used to show my post in the homepage: <?php if ( have_posts() ) : // Start the ...
1
vote
1answer
2k views

add_action in functions.php, do_action in plugin?

I am trying to set an add_action function in my currently active WordPress theme functions.php file, for a defined do_action function within an activated WordPress plugin. The add_action function in ...
1
vote
2answers
1k views

hfeed CSS class in Twentyeleven Theme

The twentyeleven theme has hfeed class attached with the main container #page. I could not find any definition of hfeed in style.css. Does it have any purpose or its just a random class name given?
1
vote
3answers
3k views

How to remove header image on subpages in Twenty Eleven (default theme)?

I'd like to remove the header image on all the pages except my "home"-page. Any ideas? Thks
1
vote
1answer
2k views

Working with an Array inside Your Theme Options Array - Multiple Values

I apologize if this is covered extensively elsewhere, I'm not sure how to phrase my searches on the topic. Basically, instead of the following standard code to store data in WP-options... $options = ...
1
vote
2answers
188 views

Themes—Child Themes

I apologize if this is a very basic question, but I am very new to working with Wordpress. I'm looking into using Wordpress as a CMS for a new site I'm building but I'm not sure I understand some of ...
1
vote
1answer
69 views

Protect changes made to the theme when updating

I customized the wordpress theme I'm using by changing php, css and even a js file. Is there a way to protect these changes, when updating the theme to a new version?
1
vote
3answers
1k views

How to change sidebar per page?

I am new to theming with wordpress. I have a theme layout with one sidebar at the right side of the website. Now on my homepage and one other page i dont want to have the sidebar. On all other pages ...
1
vote
4answers
570 views

Wordpress Theme for Video Showcase [closed]

Does anyone know of a good theme for showcasing multiple Youtube videos? Thanks!
1
vote
2answers
116 views

How can you showcase various premium themes to clients without having to pre-purchase the theme?

If you use a premium theme service (my skills lie more in coding than artwork), what is a good way to show clients examples of what themes are available to them, without sending them to the theme ...
1
vote
2answers
70 views

Why use while over if in single wordpress posts?

Why is while() used instead of say if() here: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php ...
1
vote
2answers
37 views

WordPress Backup

I'm learning how to backup right now and I'd like some validation. From what I understood, to fully backup my Wordpress I need two things. One backup for my database and another for theme files. The ...
1
vote
1answer
89 views

Same theme name issue with wordpress repository theme

I created new theme with name for example XYZ. its good till now but the issue comes before few days. Wordpress repository has a theme with same name as my theme's name. Now the issue is when the ...
1
vote
3answers
465 views

How to remove a file included in parent theme with locate_template() via child theme?

In my theme I use locate_template() to load the various parts of my functions library. I'm looking for a way to not include one of those files when using a child theme. I tried adding ...
1
vote
2answers
193 views

Child-theme breaks site

So, I have a child-theme with nothing but the required CSS file in it. Once I activated this child-theme my entire site is down. I end up with 2 questions: How can activating a child-theme with ...
1
vote
1answer
105 views

Theme Check: Could not find post_class

I've inherited a theme from a another developer that I've re-styled for a client. We're just about finished, but I thought I'd run it through the Theme-Check plug-in to see if there's any errors or ...
1
vote
4answers
2k views

Confit theme on Wordpress.org

I'm a fairly new user of wordpress.org. I have a wordpress.com site using the Confit theme and wish to transfer it to .org. I exported the site from .com and into imported to .org successfully, only ...
1
vote
1answer
508 views

How to put a banner ad between post 1 and post 2 on homepage only

Wordpress Swift Theme is installed on my My site http://tech-ticks.info From last few days, I am trying to find a solution to put an ad banner on homepage only between post1 and post 2. I have ...
1
vote
1answer
192 views

How can I list recent posts excerpts?

I am using this directly from the codex to list 3 recent articles titles. <ul> <?php $args = array( 'numberposts' => '3'); $recent_posts = wp_get_recent_posts( $args ); foreach( ...
1
vote
1answer
211 views

How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)

I've created my own theme based on a very lean template. My theme is not parsing the [caption]...[/caption] markup to the correct html. It's just showing the text without any markup around it. Here ...
1
vote
1answer
809 views

Creating a rotating header /image slider using theme customization

So I'm learning WP and I want to create a rotating image slider for the header (like in this) using Theme Customization API. But I can't figure out how to and what setting should I use to take the ...
1
vote
1answer
266 views

Changing the template hierarchy

Is there an easy way to change the WP default template hierarchy? For instance; Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
1
vote
2answers
83 views

Which themes do you use to test compatibilities with your plugin [closed]

When developing a plugin, I usually test it with the following themes before public release: TwentyTen by Automattic TwentyEleven by Automattic Coraline by Automattic Duster by Automattic Hybrid by ...
1
vote
1answer
1k views

Why is get_post_format() for “Standard” returns empty

I've enabled custom posts types add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); The default post type is set on Standard, and it works for all ...
1
vote
1answer
3k views

file_get_contents Not allowed in Themes?

I'm using file_get_contents in a theme development (in a widget of the theme). However the theme check plugin gives me following warning: WARNING: file_get_contents was found in the file file.php ...
1
vote
1answer
476 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
1
vote
1answer
290 views

How to set different settings for a mobile theme?

My desktop version of wordpress theme requires using a 'static' page as the start page as it has custom shortcodes etc. While this is good, when it comes to my mobile theme, sadly the 'static' page ...
1
vote
3answers
4k views

How to Insert Shortcodes into Theme?

I have content locker plugin. For locking contents, im using this shortcode: [wp-like-locker] Your locked content here... [/wp-like-locker] and I need lock every post on my blog. How could I ...
1
vote
1answer
1k views

How to use get_page_by_title() with qTranslate?

Any idea how I can use the WP function get_page_by_title() with qTranslate installed? for example: $page_contact = get_page_by_title( '_e("[:en]contact");' ,'page' ); $page_contact_ID = ...
1
vote
2answers
2k views

Changing $before_widget for certain widgets

So I'm working on designing a Wordpress theme with lots of extra widgets. The ones I have added are in separate files, and called in the functions.php I have lots of css on the widgets themselves and ...
1
vote
1answer
928 views

How do I put my comment form above the comments?

The default way to do things seem to have the comment form below the comments. I'd like to have the form at the top. How do I achieve this?
1
vote
2answers
9k views

Display a specific dynamic sidebar widgets on a specific page

I have had a wordpress site handed off to me halfway through completion. It's been at least a year since I last used wordpress and there are a lot of things I'm finding different. The way I am used to ...
1
vote
2answers
400 views

adding multiple sidebars on pages

I am using twentyten theme and I want there to be two sidebars on my page - one on the left and the second on the right. Can any one tell me how to do that?
1
vote
1answer
144 views

Varying Search Result Pages

I have two different kinds of search results on my site and I'd like to change the look of the search result page entirely. I've played around with the search form a bit but I'm unsure how to force it ...
1
vote
1answer
341 views

What are non-printable characters doing in my theme?

* REQUIRED: Non-printable characters were found in the 'functions.php' file. You may want to check this file for errors. What are non-printable characters and how can I correct it?
1
vote
2answers
621 views

How do you get thumbnails to show up in the admin edit post?

I tried to add thumbnail support to my theme add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size(133, 133, true); add_theme_support( 'post-thumbnails', array( 'post' ) ); ...
1
vote
1answer
379 views

How to set a single theme directory on a multisite blog?

Some days ago I've upgraded my single-site WP installation to support a multi-site WP website. So I've created two new sites and set the same theme I was using on my single WP blog before. But ...
1
vote
4answers
343 views

wordpress theme backend admin only

Does anyone know of a theme that completely removes all uses and aspects of the frontend. So the sole use of the site will be in the admin section. to use as a portal for something like a school or ...
1
vote
1answer
3k views

how to add custom fields in page

I am still new to Wordpress and I want to insert a featured content gallery into a Wordpress page. I tried to do it myself, but it wanted me to use custom fields. Where can I add custom fields, is ...
1
vote
2answers
1k views

Add a series of checkboxes to theme options

Hi I made a theme options by this tutorial This options have multicheck type by checkboxes. I don't know how to make it work. I'm try to exclude page using this multicheck. This is my array with ...
1
vote
1answer
8k views

Adding a Template to the Page Attributes Panel for both Posts and Pages?

I would like to keep my main theme as the active theme, but allow users to select a slightly different layout via the "Page/Post Attributes" panel. Ideally, I'd like to store this layout under my main ...
1
vote
1answer
139 views

Wordpress Theme Development Seemingly Awful Partitioning of Includes?

I just finished a tutorial that told me to create my header.php without closing a tag at the bottom of the included file. Now while I realize that in anyone of the parent files which includes ...
1
vote
1answer
315 views

Why do Trackbacks/Pingbacks not appear below my posts/pages?

My wordpress required me to check some Trackbacks and I checked and accepted them. They are listed in the comment administration and I activated "allow Trackbacks/Pingbacks on this page" on the ...
1
vote
2answers
36 views

Hide default “Recent Comments” Widget if there are no comments yet

Is there a way to hide the widget completely if there are no comments yet? I was thinking about maybe adding a php function to my functions.php file - is that a possible way? If so, can someone ...
1
vote
1answer
24 views

How to understand a specific bit of Wordpress syntax

I am changing a theme in Wordpress, and in an earlier theme, there was something like this that added a an email signup widget to the page: [green_tick_1_list width="100%"] But in the new theme ...
1
vote
1answer
31 views

How to know if user choose to show full post or excerpt?

I've seen there is a setting to choose whether to see full posts or excerpts on feed. However I'm using a theme that doesn't seem to support this functionality (it always show the full post). For this ...
1
vote
1answer
61 views

First post of each category

I'm trying to create a simple loop, that gets the latest post of 3 selected categories. I've searched for something similar to learn from, but most are overly complex. At the moment, I have: ...
1
vote
2answers
87 views

Which hook callback has priority if both plugin and theme use the same hook?

If a theme and a plugin uses the same action hook, for example comment_form is used by both theme and plugin. Then , which one will be called first? the function associated with the theme's hook or ...
1
vote
1answer
324 views

How to move theme directory but not plugins/uploads out of WordPress root directory?

I am trying to set up a few local multisite installs that will share the same themes folder, but have separate upload and plugin folders that will be in the usual places in wp-content. UPDATED: ...
1
vote
1answer
33 views

Set multiple templates per post

In Joomla! articles can use multiple templates. I could only put ath the end of url ?template=templatename and article uses the template "templatename". Is this possible in Wordpress?