Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

6
votes
7answers
5k views

Why is wp_head() creating a top margin at the top of my theme header?

I am creating a custom theme, and elements behave as they should but when I place the <?php wp_head() ?> tag I get a top margin, at the top of my theme header. When I remove the <?php ...
5
votes
3answers
398 views

How to: Update live sites theme from version control repo via plugin or library? [closed]

Maybe someone knows how i could update my live sites theme from a version control*) project repository. Point is that it's really time consuming if you got your theme hosted with version control (as ...
1
vote
1answer
559 views

Query & Order posts by custom fields

I'm trying to query a custom post type "jogos" where the meta value "data_de_lancamento" (launch date) is <= than today's. That field uses the format dd/mm/yy. The returned posts from that query ...
1
vote
1answer
376 views

Multiple Page Templates & CSS

What's the best practice for handling CSS on a theme with multiple page templates? For example: I will have a Full Width page template and a 2-column page template. Is it best to just call out the ...
1
vote
3answers
89 views

Excluding Pages not working

I was trying to set up a few pages the other day that would hold an authors information (only to be accessed from the author snippet at the bottom of posts), and obviously these pages are showing up ...
0
votes
1answer
637 views

How to use multiple check-box values to work in a function and insert values in database

I am working on a custom theme where there is option to upload images . I have certain check-boxes in the form which the users select as per where the image has to go. My form code is as follows : ...
3
votes
2answers
245 views

Why might $input (Settings API) be coming through empty?

I'm trying to be a good thememaker and pass all my settings through the Settings API, but I'm running into some difficulty in the sanitization callback function. The core of the problem is this: the ...
2
votes
2answers
456 views

Displaying part of every child page?

I have been trying to find a way to return page information in order to create a landing page. I have done this with posts before, to create a blog reel, and would like to achieve the same overall ...
2
votes
1answer
108 views

Can I specify that custom.css gets loaded at Appearance > Editor instead of style.css?

I want to specify which css file gets loaded when the user clicks on "Appearance > Editor". However, its always loading style.css for some reason. Any way to enforce that a specific file gets loaded ...
1
vote
1answer
2k views

Widgets with groups / sub widgets? Widget in a widget?

I tried to find anything about adding a widget within a widget area. That widget should be a widget group / sub widget area. I've found a plugin that does this: ...
1
vote
1answer
133 views

Questions about WordPress.org theme review

I have created one theme. The theme was denied today for the following reasons: Theme Review: Themes should be reviewed using define('WP_DEBUG', true); in wp-config.php Themes should ...
0
votes
1answer
129 views

questions of submit wordpress theme [duplicate]

Possible Duplicate: Questions about submitting theme to WordPress.org I have created one themes. which is still pending approval or denial. the theme was denied today for the following ...
0
votes
1answer
975 views

Enabling Default Widgets in a Custom Theme

In custom theme development, how does one enable default built-in widgets? Note I mean default built-in widgets, not custom ones. I tried the following example for a WP 3.12 blog by placing it in my ...
1
vote
3answers
2k views

Can't edit style.css in subdirectory of my theme?

I want to edit a file style.css but the theme editor shows this: /* ---------- Reset Tags ----------- */ @import url("css/reset.css"); /* ---------- Reset Tags ----------- */ @import ...
2
votes
3answers
2k views

Adding “latest from the blog” to the homepage

I have a big problem and no clue how to solve it :) I want to add a "module" to my homepage (static homepage, not blog posts) that will display the 2 latest blog posts in a very particular way and ...
0
votes
1answer
198 views

Customizing Titles on the Fly with Code

I hope this question is easy. I want to customize my theme so that the post titles are created on the fly with code. For example, I might have a post where a price changes on the page 4 times a week, ...
2
votes
2answers
408 views

adding .current* tags to custom post types and taxonomies

TwentyTen adds some classes to custom menus, for instance: #access #menu-item-262.current-menu-item, #access #menu-item-262.current-menu-ancestor All the top-level links in my primary navigation ...
0
votes
1answer
734 views

Static home page with “Blog” inside?

I'd like to have a static home page and also have a link called "Blog" that lists posts in the "blog" category in chronological order. Would the best way to do this just be to place code in ...
9
votes
2answers
4k views

Making update notification functionality for my themes

the question is simple :) I am making a theme that i will use in lots of sites. So, i don't want to go all the site and ftp the files every time i fix a bug or do a theme upgrade. Is there any way i ...
1
vote
2answers
273 views

Free starter theme to make mobile websites?

Is there any free starter theme to make mobile websites using WordPress?
0
votes
3answers
1k views

Changing background color depending on parent page?

I created a WordPress template and now I would like to use that template for several pages, however I would like to have different background color on some of the elements such as footer, header ...
3
votes
2answers
485 views

wp_insert_post breaks rewrite rules

I'm using wp_insert_post to programmatically add content to a site. This works fine with posts, categories and tags, but not with pages. When I attempt to add a page (i.e. post with post_type=page), ...
1
vote
2answers
283 views

defining a folder location in order to recall it

I'm creating a child theme off of wp-framework and in it's header it uses <?php echo IMAGES . '/favicon.ico'; ?> to recall the folder where images are kept. How do I define or create the ...
1
vote
4answers
226 views

Installing WordPress locally

I'm working on a new WP site. The WordPress installation has already been done on a live server by the ISP and now I need to skin it. I am wondering if I should bring the site down to my local ...
1
vote
3answers
890 views

Child themes: disabling the parent

I'm creating a parent theme and several child themes. But how can I prevent the parent theme from ever being used?
1
vote
2answers
2k views

How to add a user defined hyperlink to the “Featured Image” and the_post_thumbnail()

I've enabled my theme with the ability to display the "Featured Image" for the post. However, I'm trying now to determine (1) How to assign a hyperlink to the image and (2) How to call ...
0
votes
1answer
104 views

How to make a function occurs for one time?

I have the following code in the functions.php file in my theme function my_func(){ echo "foo"; } add_action('admin_menu','my_func'); I assume this function "my_func" will be ...
6
votes
6answers
2k views

Where to store PHP files created by plugin / themes

There are cases in which a plugin or theme needs to create a php file somewhere that can later include it. For example a captcha plugin, or some kind of a templating system like twig/smarty (In my ...
0
votes
1answer
213 views

Wordpress comments title

This code: <?php comments_template( '', true ); ?> Outputs: <h3 id="comments-title"> <h2> 12 Responses to My Post. </h2> </h3> (comments template) I ...
1
vote
4answers
400 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 ...
0
votes
1answer
358 views

Formatting <code>?

I have serious trouble displaying code blocks in my theme. I want to display something like: <something> <something-else> Content </something-else> ...
1
vote
1answer
566 views

Theme settings keep getting reset/erased

I bought a theme from Themeforest called Anan. I am currently hosting the site on Bluehost. Here's the problem: every few days the theme settings keep getting erased (reset) so I have to re-upload ...
4
votes
3answers
3k views

wp_nav_menu sort order?

Hey Guys, I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu. Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order? I ...
1
vote
1answer
9k views

How to create a fixed header and scrolling content area

I've bee experimenting with a site I'm working on. My client wants the header with its nav and logo intact, so visitors always have the ability to access the navbar while scrolling to read the page ...
2
votes
2answers
3k views

Can't access WordPress functions in file called via Ajax?

I am trying to reload the fresh posts using jQuery. As far as I know, I can't reload the contents of a div inside the page so I reload a file into that div. The problem is that my loaded file gives ...
1
vote
3answers
733 views

Why is archive.php used for my page

I have a page "Portfolio", it contains a loop that outputs the list of portfolio (Custom Post Type, is this the problem?) items using page-portfolio.php. Problem is somehow WordPress used the ...
0
votes
1answer
139 views

How to determine when my theme is deactivated?

I'm using the following code branch to execute some theme setup options... $myTheme_initialized = get_option('myTheme_initialized'); if (is_admin() && !$myTheme_initialized && ...
-1
votes
3answers
1k views

Any Cool Wordpress Theme Editor? [closed]

I am looking for wordpress theme editor, Is there any Cool Wordpress Theme Editors available for free??If you have worked with share your experiences here .. And also the links to download them with ...
0
votes
2answers
810 views

How can I change the theme of different posts using a plugin?

I'd like some posts to look different from others. Wordpress let's me easily switch themes for pages, but not posts. Is there a plugin that will let me do that for posts?
3
votes
3answers
2k views

Integrating plugins in themes

I could not find a thread discussing this, so starting this one. I am currently working on a rather elaborate theme for 3.1+, and by elaborate I mean that in addition to styling and regular front-end ...
2
votes
2answers
920 views

add generated stylesheet from parent theme after child-themes style.css

I have a child-theme -> parent-theme setup, where I need to have stylesheet called generated.css loaded in addition to the style.css file added by the active child-theme. The generated.css file is ...
2
votes
5answers
135 views

Should I add sharing buttons using a plugin or directly in my theme files?

This question relates to plugins for Linkedin Share buttons, Twitter Tweet buttons, and Facebook Like buttons. These are for blog posts on a WordPress blog which is at a subdomain of a site that is ...
0
votes
1answer
1k views

Custom nav menu is created with default pages, but not hooked to theme's custom menu location

The script below creates a nav menu and assigns a page to it. Everything's working perfectly except that the nav menu is not being automatically assigned to my theme's "Header-menu" location. Any ...
0
votes
1answer
153 views

All post ids are the same after this query but rewind_posts() does not seem to work here?

I'm executing a query inside of header.php which is apparently resetting the $post object so that all pages are getting the $post->ID of the last element in this loop. $mypostsheader = ...
2
votes
1answer
317 views

How to determine if post has widget content?

I've got a registered sidebar called "my-header" that affects the absolute positioning of elements below it in the markup. So I need to execute a query in header.php to determine if the sidebar is ...
0
votes
3answers
4k views

Why are some of my thumbnails not being generated?

I am currently developing my new theme over at testing.detailsofmylife.net and I am using a WooThemes template as my basic design. I want to try and include their WooTabs widget as graphically I ...
0
votes
1answer
1k views

How to programmatically bring back “excerpts” field in post editor in WP 3.1+

My theme uses some custom options fields, like post excerpt, that were removed from the editor screen with WP 3.1 I understand and support the intent to clean up the content workspaces. However, as a ...
2
votes
3answers
289 views

Where can I find a good reviewed collection of Twenty Ten child themes?

I am looking to extend the functionality and more importantly improve the design with post thumbnails on main page, beautify post metadata, etc. If you know a good child theme for twenty ten, please ...
54
votes
4answers
59k views

Menu items description? Custom Walker for wp_nav_menu()

Normal Wordpress Menu looks like: Home | Blog | About us | Contact But I've seen many pages with descriptions under these links: Home Page | Our Blogs | About us | ...
3
votes
4answers
520 views

Suggestions for creative use of post format feature, or themes that use them well

I'm looking for themes or examples of sites that use the post format feature in an interesting way. I suppose adding special styling for each post format would be a good start. But if anyone knows ...