The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
28 views

Change the functionality of wordpress users module in admin

I want to restrict wordpress admin to view all users in user list. For say, I have created custom roles (company users, employee). A company user type role can have multiple employees. I want ...
1
vote
2answers
66 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
1answer
45 views

Changing a WordPress core function without hacking core

I am looking to change one line within a core function. The function is wp_allow_comment() located within /wp-includes/comment.php function wp_allow_comment($commentdata) { global $wpdb; ...
0
votes
1answer
38 views

Why There Is No “get content by ID” Function

When i need to get content of a post with ID, I'm always using this function : function getContentByID($id) { //http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id ...
1
vote
1answer
95 views

Conditional tag is_page with a custom post type

Accordingly to the is_page documentation, supplying the slug as an argument WP can tell me whether the current page is the one represented by the slug. Perhaps I am using the wrong slug? However I ...
0
votes
0answers
13 views

wp_head rel=next and rel=prev on certain pages only

I'm trying to hook the wp_head() to add the rel=prev and rel=next only in certain pages, but I'm not sure this can be done. I was expecting the do_action to be able to help me on this, but apparently ...
0
votes
0answers
59 views

How to change value in wp-include/taxonomy.php without exchanging the Wordpress-core

I had the problem that tags of private posts didn't show up in a widget tag-cloud even if the user is logged in. The reason seems to be the value of "post_status" in the function ...
1
vote
1answer
62 views

Extending WP_Widget throws error when Monster Widget used

I wanted to override the output for the core Recent Comments Widget. I extended WP_Widget_Recent_Comments made the changes needed and it displays exactly how I want. However, I have now tested the ...
5
votes
1answer
212 views

Managing WP Core & Plugin Updates for Clients

I'd like to know how you go about managing WP Core & Plugin updates for clients? It's a service my web company would like to start offering but we are unsure of the best solution. Let me provide ...
0
votes
0answers
40 views

Upacking the package… stalls, but installs plugin

I have been searching high and low for the correct solution to my problem. I have found many searches relating to this, but can not find a solution... Here is the Updated Video to see what happens ? ...
0
votes
0answers
39 views

Sharing two subdomains with a single WordPress without MultiSite

I want to have a single Wordpress installation for use of two domains e.g. http://blog.example.com for blog http://www.example.com for company pages I don't want to use multi-site setup, because ...
0
votes
2answers
69 views

Wordpress and a secondary database?

I have to achieve something on which I don't know how to approach it. Base of the issue: There's a bunch of data in another DB that I have to import into WP which so far wasn't possible due to them ...
0
votes
2answers
137 views

Override default password nag in Wordpress

For some reason my default password nag is playing up on a big multi-user site I've setup. Pretty sure it's got to do with the New User Approve and Gravity Forms User Rego combo that I'm using. ...
1
vote
1answer
63 views

What's the purpose / logic of split_the_query in WP_Query->get_posts

In the get_posts method of WP_Query, there's a section relating to split_the_query The logic of split_the_query is $split_the_query = ( $old_request == $this->request && ...
4
votes
1answer
62 views

Why are double-periods (“..”) invalid in a Wordpress image filename?

ms-files.php contains the following code fragment: $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( ...
5
votes
1answer
234 views

Slow wp_term_relationships query

I'm running a large WP instance (currently has 28,000+ posts in custom types) and have been experiencing some odd slowdowns. Upon analyzing the MySQL slow query log, one of the problem queries is: ...
1
vote
1answer
54 views

Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?

I'm trying to use get_home_path() in my plugin, however, I get a call to undefined function fatal error (running Wordpress 3.8). I believe this would imply that my plugin is being loaded before ...
0
votes
0answers
26 views

/wp-login keeps loading. Weird code window.location

Some of my multi sites have got a weird code on the wp-login.php page. Its not all of them and yesterday was fine and now this is its there. window.location = 'http://www.mydomain.com/wp-login.php' ...
0
votes
1answer
25 views

Usage of var keyword in the core

I've noticed many of the classes throughout the core declare member variables with the var keyword YET in the comments (written above the variable) it's declared as being a private access. The PHP ...
0
votes
1answer
101 views

Cannot redeclare wp_update_core()

I think it's right after the WordPress update, we can't access the wp-admin to log in anymore. Fatal error: Cannot redeclare wp_update_core() (previously declared in ...
0
votes
0answers
71 views

Making Site A Use Site B's wp-content Folder

I'm trying to synchronize two WordPress sites and on my way I've faced few challenges. One of the challenges is to either synchronize the wp-content folder of two sites or make one site use the ...
0
votes
1answer
57 views

How to add a forward slash to the end of wordpress home?

I have a wordpress site - domain.com/tickets domain.com redirects to another site - this will be fixed soon but will redirect for a few more months. So when I go into WP settings I put in ...
2
votes
3answers
2k views

“Unexpected error” on update requests

It needs connectivity to wordpress.org and is timing out. I am behind a corporate firewall. I have never had this issue come up before in previous versions. Why does themes.php need access to ...
2
votes
3answers
138 views

How to disable core and plugin updates

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.
0
votes
0answers
64 views

Replace get_the_category() with Hikari permalink

I want to edit my theme I have bought. I'm using the Hikari permalink plugin to set which category I want to have as the default (instead of lowest ID number). Now my theme just uses ...
2
votes
1answer
76 views

What's $GLOBALS['wp_settings']['media']['embeds']?

In wp-admin/options-media.php, there are a few lines that go: <?php if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : ?> <h3 class="title"><?php _e('Embeds') ...
1
vote
0answers
95 views

How do I set a custom WordPress update repository?

I'm co-authoring a white paper on utilising WordPress as a foundation for a web-app, I would like to change the repository that the core WordPress updates from, the latest additions of automatic ...
4
votes
2answers
139 views

What is a “protected” post status?

I noticed in the register_post_status function in core that there is an arg for 'protected'. The following post statuses: 'future', 'draft', and 'pending' all have this set to true. I'm not talking ...
0
votes
1answer
37 views

Script dependencies for post.js

I have already got the built in meta boxes displaying on the front, but some of them require the accompanying wp-admin/js/post.js to function correctly. I'd rather not rewrite anything here and just ...
1
vote
1answer
311 views

Loading WP core Thickbox through frontend

Looking through some of the top Google results, this question has been answered a number of times, but the answers given don't seem to be working in my WP 3.6 install. One solution given is this: ...
0
votes
0answers
59 views

question about wordpress core code (wp/includes/query.php)

I was trying to find out how wordpress process each request and returns the result. I found wp() function calls $wp->main() which in turn calls $this->query_posts(); and which calls ...
1
vote
2answers
1k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
0
votes
1answer
224 views

Best way to extends core classes in theme?

I need to add functions to my WP_User objects, to be used like this : <?php // in my templates : $user = new User($id); $user->sendHelloWorldEmail(); // in my functions.php class User extends ...
4
votes
2answers
229 views

Rewriting a core function?

As I understand it, it's possible to overwrite core functions in wordpress, without touching the core itself, which is of obvious benefit. Now, certain functions are 'pluggable', but not all of ...
-1
votes
1answer
110 views

Location of core code for database connection and get_header

I understand WP well enough to create a custom theme at a basic level, but have no experience with the core code. I've also just finished a book on basic php and mysql coding. I'd like to look 'under ...
1
vote
2answers
294 views

Clarification on filters and hooks

I am about to start my first WordPress project and I have the task of moving customized core code that override the core into separate functions/files (this way it'll be easier to maintain when we ...
0
votes
1answer
254 views

Why does wp_links still exist in the db schema?

I understand that links used to be a big thing when Wordpress came out and during the blog rise, but the link feature is so underused nowadays that as of version 3.5 it is hidden by default (thus ...
2
votes
0answers
144 views

Is there any plan for WordPress to handle retina support for the site content? [closed]

I see from browsing Themeforest that there are many retina ( HD ready ) themes available; and WordPress itself has retina standard icons for the backend too; but what about the content, both future ...
0
votes
1answer
49 views

Which file renders the “Edit Gallery” Settings page?

I was looking for a tutorial on adding options to the "Edit Gallery" page. In the hopes of adding some GUI inputs that would result in the generated [gallery] short-code having custom attributes. I ...
0
votes
1answer
550 views

What's causing this error? “Warning: Invalid argument”

I noticed today that my error logs are littered with this information. I'm not quite sure what's causing it. Has anyone seen this before? [Mon Mar 25 17:24:23 2013] [error] [client] PHP Warning: ...
0
votes
2answers
77 views

Possible to add a statement to a core file?

I would like to add one line to a wp core file. Basically on the 'edit.php' page, just right above <?php include('./admin-footer.php'); I would like to add an php include statement... ...
0
votes
1answer
681 views

Disable feeds for specific custom post types

I want to remove the feeds for specific custom post types. Most recommended methods are not clean. There seems to be a option called $args->feeds but this does not work within the ...
0
votes
1answer
100 views

Dismiss Admin Pointer Temporarily

I have a custom meta field for a page that contains a future date. I'm wanting to make sure this is always a future date and have decided the best way to do so is by creating an admin pointer if the ...
2
votes
1answer
38 views

How can i know when i can execute what functions of wordpress?

I like to do a bunch of stuff only on homepage and archive pages i am working with the genesis framework (not really matters i guess) if( is_singular() ) { wp_die('functions.php'); } ...
0
votes
1answer
105 views

How to remove a settings section from the Theme Customization API preview pane?

I am currently working on a theme that uses the Wordpress Customization API and I need to remove some pre-existing sections from the customization preview pane. Is there somewhere like a global ...
5
votes
2answers
704 views

Are the wordpress Core css styles really all nessasary?

On WordPress Codex there are this CSS styles listed, its a quite big list of styles but it seems they are doubled unnecessary. It says: Each Theme should have these or similar styles in its ...
2
votes
1answer
557 views

Changing subdir multisite install to subdir core directory structure

Now that WordPress 3.5 is supposed to work with core files in subdirectory, I decided to move my local development setup (subdirectory multisite) to that configuration. Fast forward and what I have ...
1
vote
1answer
92 views

Conditional hook based on the core function that is calling it

In a Multisite, I'm applying the filter get_blogs_of_user to sort the "My Sites" admin bar menu, where the sites are listed by blogname: What happens is that I'd like another order elsewhere, where ...
6
votes
2answers
191 views

How do I use the WP image functions in a page template?

Wordpress has tons of mature code for image editing on the admin side, but I would like to provide a form inside of a custom page template for my visitors to drag and drop, crop and save a thumbnail ...
0
votes
2answers
104 views

WordPress auto update for core but use local package

I have several local WordPress dev environments but, for the moment, a very very slow internet connection. The WordPress auto updater for core is very convenient, but would it possible for it to use ...