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
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
444 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
165 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
171 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
691 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
212 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
82 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
996 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
2k 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
422 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
239 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
3k 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
1answer
758 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
7k 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
337 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
131 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
260 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
564 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
345 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
2answers
2k views

How can I get the title attribute from get_the_post_thumbnail()?

In my theme I want to display the featured image, but I also want to display the title attribute (of the image, not of the post/page) beside the image itself. Is there a simple way to do this? Where ...
1
vote
4answers
312 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
135 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
290 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
1answer
22 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
27 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
26 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
53 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
194 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
31 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?
1
vote
1answer
41 views

How to remove comment link title attribute?

When I hover over any post's comment link, I see the title: "Comment on Post Title". How can I remove it? I could not find this text in the theme. Edit: Here's the source which generates the comments ...
1
vote
1answer
291 views

why does bones theme call the_excerpt function with parameters?

I have been triying to localize a wordpress site which uses Bones as the theme. In the theme's search.php, there is a line that goes: <?php the_excerpt('<span class="read-more">' . __('Read ...
1
vote
1answer
137 views

How can I let templates choose which stylesheets are enqueued?

My theme's functions.php hooks into wp_enqueue_scripts to register a couple of stylesheets that are used by various site pages. Here's a simplified version of my configuration: ...
1
vote
2answers
90 views

How does a Child Theme works?

I created a child theme and installed it but I don't know how exactly it works! For example, in the parent theme I have the code below: .header { margin-top: 10px; margin-bottom: 10px; ...
1
vote
1answer
278 views

Animated gif for a thumbs

I need to insert an animated gif for a feature image but I don't understand if is possible. Right now when I try to upload a gif, wordpress create automatically a gif single frame. Is it possible ...
1
vote
2answers
364 views

variables in translatable text

I am adding a list of suggested plugins to my theme using TGM Plugin Activation - https://github.com/thomasgriffin/TGM-Plugin-Activation/ However, when I run theme check, about 40 or so ...
1
vote
1answer
1k views

Calling widget via function in themes files (hard code)

Finally I finished to write my widget, and now want to call it using function inside themes php files. My widget looks like this: function reg_custom_widget() { ...
1
vote
1answer
725 views

Custom post types and child theme

Okay, here's the deal. I am working with a child theme and I want a custom post type. What I did Added the following code the functions.php of the parent theme. add_action( 'init', ...
1
vote
1answer
158 views

Should a child theme share the same theme options row as the parent, or should it have it's own options row?

I'm developing a theme which uses the NHP Theme Options Framework to add some theme options. Naturally, the theme options framework creates a single row in the database to store the theme's options ...
1
vote
2answers
109 views

How do i structure my theme folder to avoid one huge list of files

When working with a worpress site with lots of custom post types and lots of page templates, my theme folder is looking messy. What are the accepted best practices to organise code files in WordPress? ...
1
vote
2answers
71 views

Posts vs. Pages

Okay so I've spent the last few weeks (on my spare time outside of work) creating a site for a client with a custom built theme. This is my first use of wordpress and the site can be seen here at ...
1
vote
1answer
99 views

Generating the ogp tags in theme

I use to generate the ogp tags in themes I code but this commercial one is beyond my knowledge. The client want to share a page but any image option shows up. Instead of a taxonomy-name.php template ...
1
vote
3answers
194 views

Removing feeds from header using a function?

I want to remove the default RSS feed, which I can successfully do by adding this in functions.php file. remove_action( 'wp_head', 'feed_links', 2 ); However, It is important for me to use this in ...
1
vote
1answer
907 views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
1
vote
2answers
196 views

Select menu on browser resize

I have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done? I know there is a plugin for that, but I want to ...
1
vote
1answer
82 views

Can i have a single wordpress site to have two themes ( one for pc other for mobiles)

I have a wordpress site say at www.demo.com, now I have two themes one which I want to use this user is acessing the site from "PC" (computer) and a another theme, which is a full fledged mobile theme ...
1
vote
1answer
464 views

What's the order of loading wordpress elements?

I currently try to make a theme for wordpress and I'm confused about lots of things. I'm not sure what's the order of loading wordpress elements, where some variables are available, where they are ...
1
vote
1answer
190 views

Load a different theme for IE less than 9

I want to load a different theme for those users who still use IE 6 - 7 - and 8 any plugin or code?