The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
23 views

Does a codex exist for creating meta boxes in taxonomy

I am looking for WordPress official documentation to create meta boxes in a taxonomy. There are many tutorials, but each of them is completely different. I don't want to use any plugins. I need the ...
0
votes
0answers
11 views

Enqueue script with API_KEY as data attribute [duplicate]

I'm currently trying to create a plugin that connect with an online service who required API_KEY to be passed in the script tag, and I'm searching a way to do it the "Wordpress" way, is it possible ? ...
4
votes
1answer
1k views

Issues enqueueing parent & child theme stylesheets with revised Codex method

This post brings up a few questions I've encountered pertaining to the recent changes around stylesheet enqueueing methods brought up in this thread and this thread. The issues I encountered came up ...
0
votes
1answer
25 views

Questions on WordPress Codex Concept

When I was reading the WordPress Codex about outputting the Post and Pages I saw these two Titles at Here Output a list of all registered post types and Output a list of all public custom ...
0
votes
1answer
44 views

wp_get_attachment_image_src always returns false

I'm using wp_get_attachment_image_src to retrieve image URL. Codex is simple for this function and starting from an ID on my database I used wp_get_attachment_image_src in this way: $image_url = ...
2
votes
1answer
101 views

Override Constants in Child theme

I have a parent theme that declare these constant in function.php: define("THEME_DIR", get_template_directory()); define("THEME_DIR_URI", get_template_directory_uri()); define("THEME_NAME", ...
0
votes
1answer
28 views

How to change templates based on URL

Okay, so here's what I'm trying to do but having a hell of a time figuring out. I've got a website that uses the MemberPress plugin. All of those pages by default use the standard default template ...
0
votes
2answers
79 views

post_class not working with css

through the codex I read about how to use the post_class() function to create a css hook for styling the content. Here is the code I have, PHP: <li class="<?php post_class();?>"> ...
0
votes
1answer
26 views

using add_action without having custom plugin or theme

I need to send an email after an author publishes or updates a post. But I don't like developing custom plugin or theme. Is there any plugin that runs a php script after publish. Or where can I insert ...
0
votes
1answer
53 views

Block wordpress style for my plugin admin page

I have my own style for my plugin, it works, but wordpress adds a style too, and the page is not looking very ok. Is there any way to block wordpress style for my plugin administration page?
0
votes
1answer
225 views

get current page number with wp_link_pages()

I would like to get only the current page number (without HTML). I'm using wp_link_pages( array ( 'pagelink' => '%' ) ); How can I do that? I'm also using this code in my theme: function ...
1
vote
1answer
92 views

$reverse_top_level works the opposite way according to Codex?

The Codex for wp_list_comments states $reverse_top_level (boolean) (optional) Setting this to true will display the most recent comment first then going back in order. For my it is actually the ...
0
votes
1answer
170 views

How can I do customizations on login, registration and password recovery forms?

There are a couple of answers here basically just linking to a plugin - to be fair there are some more specific ones too. I know there are many possibilities to use different hooks for the ...
0
votes
1answer
53 views

Where to find new class reference or function of deprecated one?

After upgrading from WordPress 3.5.2 to 3.6.1, with define('WP_DEBUG', true); a site of mine's showing warning for some deprecated codes throughout the site. Some of 'em are generated from my codes, ...
0
votes
1answer
76 views

Do I need to include a textdomain if my theme doesn't support translation?

According to the codex Themes are required to use theme-slug (or a reasonable facsimile) as textdomain for translation Does this mean that my theme needs to include a textdomain even if my ...
0
votes
2answers
4k views

How to copy an existing (custom themed) site to a new domain

I'm trying to find a way of duplicating an existing Wordpress site that uses a custom theme to a new domain. Once it's there I'll do a redesign of the site and redirect the old url to the new one. ...
0
votes
1answer
367 views

How can i list current author's categories?

My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" ...
1
vote
1answer
49 views

Where is the changelog for 3.5? where is the list of added removed files?

This: http://codex.wordpress.org/Changelog/3.5 is not a changelog. This: http://codex.wordpress.org/Version_3.5 gives a few changes, etc, but no list of files added and removed. Where might I find a ...
2
votes
1answer
132 views

Why does WP recommend against custom favicon functionality in themes?

I am developing a WordPress theme, and when reading the Codex article on Theme review, WP recommendeds against allowing custom favicons in a theme. Does anyone know the reason for this recommendation? ...
0
votes
3answers
535 views

Add Option if Not Exists

I need to see if an option, and if does, get the value. If not, I need to add it. The Codex provides: <?php $option_name = 'myhack_extraction_length' ; $new_value = '255' ; if ( get_option( ...
8
votes
4answers
4k views

Is there a flowchart for wordpress loading sequence?

So like wp must load series of files from, index.php -> ... -> wp-header.php -> ... ->functions.php ...and so on upon execution. Also there must be a similar flowchart for functions ...
1
vote
1answer
837 views

Which action to hook wp_enqueue_script to? wp_head or wp_enqueue_scripts? [duplicate]

Possible Duplicate: Where is the right place to register/enqueue scripts & styles According to wp_enqueue_script() documentation in Codex, it seems that one should hook ...
1
vote
0answers
50 views

Set $options reference

I am starting up in theme development and i have searched on codex on the topic of setting theme options.This is is what i am talking about, $options = array ( array( "name" => $themename." ...
10
votes
2answers
415 views

Is There a Plugin Life Cycle Documentation?

Is there some documentation somewhere that explains what is the life cycle of the plugins? I'm starting a new plugin with OOP style, and I just found out that my main class is being instanciated a ...
0
votes
1answer
279 views

Enqueueing Scripts/Styles mid-page

Since WP 3.3, the codex has been updated for both wp_enqueue_script and wp_enqueue_style that you can now enqueue both mid-page (within the HTML body). I see this as an advantage because: It's ...
0
votes
1answer
528 views

What are these undocumented arguments for register_taxonomy?

The Wordpress codex has an example of the register_taxonomy() function at http://codex.wordpress.org/Taxonomies that shows arguments that are not documented in ...
3
votes
4answers
1k views

Different number of posts in each category

I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and ...
1
vote
1answer
336 views

Is the '/category/post-name-date/' permalink structure okay?

Wordpress Codex says: Make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post. But ...
0
votes
1answer
70 views

WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required

I have installed Wordpress in a subdirectory '/medical' and want the address to show up as www.mysite.com/page not www.mysite.com/medical/page The Wordpress Codex here : ...
0
votes
1answer
126 views

use custom field value as post category in loop

I have a page template and at the bottom, I want a loop of posts based on a custom field value - store_name This is what I have: <?php global $wp_query; $paged = (get_query_var('paged')) ...
12
votes
1answer
10k views

numberposts? showposts? posts_per_page?

So the documentation on the Codex is pretty clear that showposts is deprecated. But that same documentation mentions nothing of numberposts. Instead, posts_per_page is listed. But if we turn to the ...
1
vote
1answer
698 views

Whats the difference between blog_info('stylesheet_url') difference get_stylesheet_uri()

The question is in the title really. What is the difference between blog_info('stylesheet_url') difference get_stylesheet_uri(), and if it's a case that one is newer then which. The codex says: ...
1
vote
1answer
150 views

Help with Wordpress Query

I'm sort of a noob when it comes to Wordpess; I've only recently started building themes and I've run into a wall. I'm trying to feature 3 different articles at the top of my site using wpquery and ...
11
votes
1answer
3k views

Alternative to query_posts for main loop? [duplicate]

Possible Duplicate: When to use WP_query(), query_posts() and pre_get_posts I just noticed today that the documentation for query_posts() mentions some "disadvantages" of using query_posts ...
0
votes
2answers
73 views

What is the significance of _e(“Some String”, 'String')?

I have seen this in lots of wordpress themes and using it for a while but don't know what is the significance of it. It seems it does the same work as echo something out. Look for it in codex but ...
1
vote
1answer
2k views

get_current_site() not returning site name

The function get_current_site() that's in my themes' footer.php file doesn't return the 'site name' property as specified in the docs (and expected in the theme). The purpose of the function is to ...
1
vote
2answers
571 views

Does codex.wordpress.org use a plugin of some sort? If so what plugin?

I'm attempting to set up a wiki within a Wordpress install and love the way codex.wordpress.org is set up. Are they using a specific plugin to accomplish that or just well structured pages? Is there ...
2
votes
1answer
199 views

Browser title script ignoring is_page /else conditional [closed]

I've used this code to stipulate different separators for different pages in my clients site: <title> <?php if(is_page('Portfolio')){ wp_title( 'of', true, 'right' ); echo ...
0
votes
3answers
760 views

Breadcrumbs - get the author?

I have my own function called breadcrumbs(). In it I call is_author() to determine whether I am on an author page. If true I would like to know which author's page I am on. I tried the_author(), but ...
0
votes
3answers
2k views

Calling a plugin in theme development

I am trying to call plugins on a theme page. Specifically I am after the 'User Avatar' theme but their will be other later. How do I call a plugin on a theme? Presumable something linke <?php ...
0
votes
3answers
109 views

Codex Version Focus on Production or Nightly?

The function get_users_of_blog() is to be deprecated in WP 3.1.0 but the current production release is 3.0.5. Does it make since to have the documentation reflect a nightly change when the ...