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

learn more… | top users | synonyms

3
votes
1answer
404 views

How to call the_excerpt() with tags or the_content() as an excerpt?

Is it possible to call the_excerpt() with tags intact? I'd like to create a excerpted listing of my posts in a specific category, but I'd also like the links and formatting carried over from the post ...
1
vote
0answers
256 views

WordPress Theme is not Responsive to Updates [closed]

I have a WordPress theme that's installed and has been running fine for a while. I recently needed to update the theme itself, and I did so using the built-in theme editor. Upon reloading the site, ...
1
vote
1answer
2k views

How to make the excerpt_more filter apply to the actual post excerpt?

In the get_blog_excerpt() function below, the excerpt_more filter works perfectly when the post excerpt is not present, however, when the post has an excerpt, I'm not getting the "Read More" link. I ...
1
vote
1answer
180 views

How to obtain a reference to the_excerpt() from custom loop

I have a script in archive.php, which is outside the loop, that calls on the function get_blog_links() to list all posts that belong the the current category (my "blog" category). I'm trying to do ...
1
vote
4answers
1k views

Wireframe tool for WordPress theme [closed]

I want to develop a WordPress theme from scratch. Is there any wireframe tool in which I can design the a complete page and it exports the html/php file against it. I want a free tool.
2
votes
5answers
764 views

How do I highlight the menu for a child page?

EDIT: This used to be How do I force a page to be is_archive == true? I was trying to solve the wrong problem. Instead of forcing the post/page to have a particular attribute, I should have ...
0
votes
1answer
209 views

Why is save_post triggered even when I havent saved the post

I created a meta box I notice that save_post seems to be triggered when I land on the page, thus giving me errors like Undefined index: xxx in /data/www/ae/wp-content/themes/xx/functions.php on line ...
3
votes
2answers
190 views

Is it proper to create a page just to generate a listing page (eg. for a custom post type)

I find myself creating pages just as a "placeholder" to a listing page. eg. I create a page "Blog" and "Portfolio". Both has the editor emtpy. And I just use it so that I can use page-blog.php and ...
0
votes
1answer
565 views

Allow users to edit home page from WordPress (home.php problems)

I am wondering how do you create a home page with a custom design like banners different layout from other pages while allowing users to edit it. I used to use home.php problem is user cannot edit ...
0
votes
1answer
455 views

wp_nav_menu and its fallback

When I use wp_nav_menu(array( 'theme_location' => 'mainnav', 'container' => 'nav', 'container_id' => 'mainnav', 'container_class' => 'clearfix', 'depth' => 4 )); ...
2
votes
3answers
907 views

How to: get main plugin/theme file?

There're the functions get_theme_data(); & get_plugin_data(); - which both use get_file_data(); that needs a specific file as $input. I got a set of classes that may be used by a plugin or a ...
1
vote
1answer
203 views

Metadata Query when storing data as array possible?

Suppose I store all my post meta data in an array like $meta = array( 'img' => '', 'caption' => '' ); update_post_meta($post->ID, 'theme_banner', $meta); Can I query posts where ...
1
vote
1answer
417 views

Is there a need for nonce with Post Metabox?

I looking at the docs for add_meta_box. They used a nonce. wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' ); I am wondering, probably the save post form itself should already ...
2
votes
1answer
1k views

How to upload images using Settings API

I want to allow users to upload images for use in a rotating banner. I tried using the media library, but didn't get much help ... So I thought, I'd just implement the upload myself. But I encountered ...
2
votes
1answer
78 views

Looking for the code in twentyten that allows users to select images for the header/banner

I am looking for the code that renders the below page. Where can I find it, it does not appear to be in functions.php? I want to learn how they allow users to upload images
0
votes
1answer
156 views

How To Detect Posted Comment in Theme Development?

A theme normally posts to wp-comments-post.php when someone leaves a comment. When successful, it does a redirect to the page again but tacks on "#comment-" into the URL. What I was wanting to do was ...
0
votes
1answer
117 views

Creating an option for writing a post without an author attribution for a group blog on Wordpress

I'm developing a group blog on wordpress (first time working with it) and the client has requested that a 'None' option be added where an item can be posted without a "by" attribution. So basically ...
0
votes
1answer
20 views

Creating an option for writing a post without an author attribution for a group blog on Wordpress

I'm developing a group blog on wordpress (first time working with it) and the client has requested that a 'None' option be added where an item can be posted without a "by" attribution. So basically ...
1
vote
2answers
913 views

display 20 lines only with the_content

I like to display only 20 lines of post with the read more link using the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>' ) ); But it shows full content . How ...
0
votes
1answer
279 views

show_option_none not working in meta box

I have the following code going into a meta box: function multi_author($post, $box) { $currentAuthors = esc_attr(get_post_meta($post->ID, 'multiAuthors', true)); if ($currentAuthors) { ...
1
vote
3answers
350 views

Where should I update_options in a theme?

I am designing a theme where the home page (i.e. is_home()) should only display the latest blog post. I want to do something like $wp_query->update_option('posts_per_page', 1) every time I am on ...
0
votes
5answers
99 views

Great blogs site resources/tutorial for Wordpress Developers? [closed]

I sometimes learn a few tricks from wordpress blog tutorial sites and its great that some of the people in this field , share what they know about working around with coding around wordpress. Im ...
3
votes
1answer
830 views

do_shortcode() doesn't do shortcodes ;)

Imagine this basic shortcode in your functions.php file: function div_shortcode( $atts ) { return '<div class="div"></div>'; } add_shortcode('div', 'div_shortcode'); So every [div] ...
0
votes
2answers
831 views

Including wp-blog-header.php from functions.php remote call?

I have a script that's called from my functions.php file (via an ajax .get) that needs to have access to WP's get_option() method in order to retrieve some values it needs to process. However, ...
2
votes
1answer
284 views

Excluding a page with a certain name from wp_page_menu

A client of mine has a WP multisite network of sites which all use the same template. This template uses wp_page_menu. I just added a mobile version of the template by using a certain plugin. It will ...
0
votes
2answers
1k views

Why my theme option not working?

I am looking for the bugs about an hour but i can't find anything. Can you look and say why my theme option is not working? Problem: The theme option not saving. Even the default option is also ...
3
votes
1answer
755 views

Theme Review: post thumbnail, header image, content width

A followup to my previous question about my theme that was rejected for the WordPress.org theme directory: RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is ...
0
votes
1answer
421 views

can't understand _e function well

<?php _e( $text, $domain ) ?> $domain (string) (optional) Domain to retrieve the translated text Default: 'default can't understand the second argument well. when i custom a theme, where ...
1
vote
1answer
456 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
4k views

Plugging into the Media Library to upload images (NOT associated with any post)

My Old Question: I made a Theme with rotating banner, common thing. So I want a way for users to select images. I think instead of implementing my own upload, I think its better to allow ...
0
votes
1answer
34 views

Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?

For example, if the post was published on may 5th 2011, then clicking on "May 5th, 2011" would show all posts published in May 2011. How can that be done?
0
votes
1answer
463 views

Call to require('../../../wp-blog-header.php') results in 404 error?

I've got a button in theme options that calls a file called color.php, (the contents of which are below). On certain installations of the theme, the script is generating a 404 error and failing ...
4
votes
2answers
449 views

Custom theme/plugin update checks

At the moment, Wordpress checks the wordpress core for it's updates. But, I'd like to add an additional check to repeat the process for themes and plugins using a seperate address, for updating ...
14
votes
6answers
494 views

What questions do you ask when asked to give an estimate on theme development?

I just recieved an email that asked the following question: "How much will cost to code a WordPress theme?" I cannot answer this question without know the answer to a plethora of other questions. I ...
5
votes
2answers
4k views

How to effectively reset the post object after calling get_posts()

The function below is called from my index.php just below the main content block. Its purpose is to write out a link list of the latest posts. However, I need to reset the post object once this ...
1
vote
1answer
2k views

using jQuery Cycle by Malsup with WordPress Page and Gallery

I would like to modify a WP Gallery to use the jquery cycle plugin by malsup. I know this is possible but would like to know best practice for this, if anything just pulling out the url for each ...
2
votes
1answer
348 views

Wordpress Genesis Child Theme Filter divs

I'm trying to html5ize a Genesis child theme. So far I've figured out how to replace the Doctype via hook but am having trouble figuring out how i can change the divs to sections and articles without ...
0
votes
2answers
4k views

Featured Image meta box not showing up

I have featured images switched on in my theme: add_theme_support('post-thumbnails'); set_post_thumbnail_size(256,128, true); add_image_size('icon', 128, 128, true); but the Featured Image box ...
5
votes
1answer
390 views

What is the difference between WP: template_directory vs TEMPLATEPATH

I am trying to code in more consistent manner and would like to know what is the difference between WP: template_directory vs TEMPLATEPATH.
3
votes
1answer
151 views

How do I hide tags that have only been used once?

I'm looking to modify my theme so that only tags that have been used more than once show up on the site. Here's my logic, feel free to fault any (and all) of it: There is no point in only using ...
0
votes
1answer
189 views

how to create theme based widget that can be drop in sider bar or footer

I am developing a installable theme in wordpress I have created a contact form and called that form in footer but I want to create a widget that should be theme based mean i dont want any plugin.I can ...
2
votes
2answers
448 views

How do you protect a premium theme from being copied?

I'm thinking of doing up a couple of premium themes, and selling copies of them. I've never done anything like this before, so I have a couple of questions. I appreciate that this is mainly a forum ...
0
votes
2answers
183 views

How to modify theme content in Thematic?

I'm not new to PHP, HTML, CSS, and the like, not at all, but I'm definitely new to creating Wordpress themes. I was recommended to use the Thematic theme as a base theme and modify it using functions ...
3
votes
1answer
843 views

is_home() returns false on the home page! When is the home page NOT the home page?

I've placed the following code in my functions.php file if(!is_home()){ echo "Not Home";} if(is_home()){ echo "Home";} However, no matter what page I'm on, I get "Not Home", And I'm real sure I'm ...
4
votes
2answers
969 views

Call dynamic_sidebar but include/exclude named widgets?

Is it possible to include or exclude specific named widgets that are assigned to a named dynamic_sidebar call? For example, if I've registered a sidebar named "my_sidebar" and the user had placed a ...
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
410 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 ...