The tag has no usage guidance.

learn more… | top users | synonyms

6
votes
1answer
159 views

What is the difference between update_post_meta and update_postmeta hooks?

I am working on an enhanced revisioning system, to create a log file for all changes made by users and/or algorithms concerning metadata attached to specific post types. While I am perfectly aware ...
9
votes
2answers
125 views

Explanation of update_post_(meta/term)_cache

I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending on what you're querying ): 'update_post_meta_cache' => false: useful ...
0
votes
0answers
9 views

Can't see audio when I acces with ajax

I have created an ajax portfolio. It works fine, but when I upload an audio, this is not display. If I acces to the post via my blog page the audio is there. I inspect this file and I discover a ...
0
votes
0answers
30 views

How to make a plugin by customizing a wp core file (class-wp-widget-rss.php)

I need to customize a wp core file, but I know it's not recommended. How to turn this custom file into a plugin? The file I'm talking about is wp-includes/widgets/class-wp-widget-rss.php and I only ...
3
votes
3answers
4k 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> ...
1
vote
0answers
45 views

Least expensive way to get table prefix in multisite installation

I am writing an api that will have to handle extremely high volumes of calls so, in short, I can not afford to load the WordPress core every call. I have no problem building the API to use the ...
0
votes
0answers
28 views

Post_name is missing after wp_update_post

I have a problem with my CPT. Registered a partner post type and I want the partner to be able to edit it if the post is draft or pending. I can edit the whole post instead post_name. Post name will ...
6
votes
2answers
2k views

Are the WordPress Core CSS styles really all nessesary?

On WordPress Codex there are these CSS styles listed. It's 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 ...
1
vote
1answer
812 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 ...
1
vote
1answer
26 views

How does one dismiss the 'upgrade notice' when managing upgrades with SVN?

I manage a site as a Subversion checkout of a tagged release (e.g. http://develop.svn.wordpress.org/tags/4.3.1 ), which means that I don't use the built-in core updater but rather just do a svn sw to ...
9
votes
2answers
3k views

Looking for WordPress System Diagrams

I am looking for WordPress chart/diagram system design. I found only the template hierarchy diagram, but it's only part of the system. source: ...
6
votes
3answers
716 views

Update to older wordpress version from admin?

I have a Wordpress 2.7.x setup that I would like to migrate to the latest version 3.2.1, however I need to make a stepped-upgrade as some plugins need an older version first (3.0.6 IIRC). However ...
0
votes
1answer
33 views

Unabled to Change Permalinks - Even Using the “Edit” (Resets to Original Permalink on “Update”)

I have tried everything in every post I have been able to find about changing permalinks for existing posts and pages. I have gone to settings and change the permalink structure in hopes that it would ...
0
votes
0answers
8 views

What are the proper file & directory permissions for WPMS

I am looking for some sort of concise reference document that indicates what the proper *nix permission settings need to be for all WordPress files and directories. I am also would like to know what ...
1
vote
1answer
48 views

Spammers attacking my Wordpress Site - Removing URL field from core? [closed]

I removed url field from my comments so there is just basically name, email and textarea field. But spammers are keeping spamming me with comments that has URLS even if comments form doesnt have any + ...
0
votes
1answer
24 views

Create a patch using TortoiseSVN

I use TortoiseSVN for managing a couple of plugins I have on the WP repo. Now, I'd like to try my hand at contributing to core with a little patch. I've followed the instructions that can be found ...
6
votes
1answer
206 views

IP address whitelist to update WordPress core and plugins

I'm working on a site based on a host with quite strict firewall rules. It won't allow anything running on the site to contact an external server unless its IP address is explicity whitelisted, and I ...
1
vote
0answers
21 views

Why does the usermeta table contain html entities?

As a plugin developer, I have been storing special characters like ampersand as is in MySQL tables, then converting them to html entities after retrieving them for display. Now I discover that (for ...
2
votes
1answer
155 views

How to listen to color changes on the color picker?

I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out ...
1
vote
1answer
26 views

Are all hooks/functions tied to Kses meant for sanitization?

I'm currently learning WordPress hooks and am delving into core to see what's happening in there. I noticed there are filters in wp-includes/default-filters.php with PHP comments about Kses. I wasn't ...
0
votes
0answers
82 views

How Can I use WPUF Pro for storing values in one other plugin

First of all i want to say i am a nob in this field of PHP coding. However, I collected some pieces of code that if some professional make some edits, it will be of great help to me. I have a plugin ...
1
vote
0answers
83 views

Does get_the_content_feed strip invalid tags?

My Wordpress 4.2.2 generates post feed with this <content:encoded><![CDATA[ <p> ...some html here... <iframe style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; ...
0
votes
0answers
40 views

Translation in Core , Plugin and Theme Update

I'm curious about translations in update transient for Core , Plugin and Theme updates. I got this from _site_transient_update_core in wp_option table in this why translations array is always empty? ...
0
votes
1answer
116 views

How long do users stay logged in if they DON'T check remember me?

As the title states, I'm wondering how long users stay logged in if they don't check the "Remember Me" option. I've heard that if they DO check it, it keeps them logged in for 14 days. But what if ...
12
votes
1answer
2k views

What's the difference between get_home_path() and ABSPATH?

What's the difference between get_home_path() and ABSPATH? Isn't the point of both to point to the WordPress install root?
0
votes
1answer
25 views

Safely editing core files

I want to edit wp-comments-post.php so that if for example someone tries to post a comment with no content they will get a popup box telling them they cannot post an empty comment instead of the page ...
0
votes
1answer
54 views

Where's the explanation of the TinyMCE's vars in the WP core?

I am modifying my TinyMCE editor for my users, and I'm using the example in the docs as a starting point. function my_format_TinyMCE( $in ) { $in['remove_linebreaks'] = false; ...
5
votes
4answers
7k 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 ...
0
votes
0answers
139 views

How To/What triggers a Wordpress auto update?

I installed Wordpress 4.0.1 and added this to my wp-config.php (via this link) define( 'WP_AUTO_UPDATE_CORE', true ); I then visited my site (I read somewhere before that the site has to be visited ...
0
votes
1answer
27 views

A thin line between native wordpress bahaviour and 3rd party themes

Bear with me as i try to learn WP. Lets say we have a 3rd party theme were the route of the request is somehow like this. Root theme index.php diverts to a nother php file which decides what page to ...
1
vote
1answer
652 views

Add More Fields to Users Pages (Admin Panel)

So I'm trying to create some custom fields for users. I need to give users access to a 30 day trial of some software and I want to keep track of that in the users page of administration panel. If the ...
0
votes
3answers
1k views

What problems maybe happen if I remove “wp-” prefix from wordpress folders and files?

I want to hide wordpress signs from my site. So I don't want other people know that I built the website via WordPress. So I decided to remove wp- prefixes from all wordpress folders and files. And I ...
0
votes
1answer
61 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...
0
votes
1answer
56 views

What Generated Classes and IDs That Is Always Used On All Themes?

Just wondering if there is a way to get a complete list of wordpress generated css classes and ids that is always automatically assigned to any themes. I've read here, but it seem not list them ...
0
votes
1answer
142 views

wordpress update will overwrite files changes?

I edit function.php and page.php files for my custom use, everything is fine, but i have query that if wordpress will update then it will overwrite all the files and changes made ??
0
votes
1answer
46 views

how does the rendering works?

i am trying to get a rough idea about how Wordpress renders the final content, built-in and plugin content. Rendering means to me, manipulating direct or indirect(delay via ajax,..) the DOM. To keep ...
0
votes
1answer
97 views

Display Custom Column in CPT Taxonomy

I am trying to add a column to one of my custom post types, but only on the edit taxonomy page. I have a taxonomy registered called "event-categories" for my custom post type "events". I can ...
0
votes
1answer
129 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
0answers
119 views

Wordpress 4.0 Media Gallery (Same Image) Bug - Does anyone know how to fix this? [closed]

So, we've been working on this site for a long time and have finally started finishing up. As a last cleanup we updated all our plugins and Wordpress to 4.0 and expected awesomeness. However, for ...
1
vote
1answer
1k 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 ...
5
votes
2answers
427 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
1
vote
0answers
175 views

Hook before & after plugin / core update

I'm working on a maintenance plugin for my website and I want to enable it before plugin/core upgrade starts and disable it after plugin/upgrade ends. Any ideas ? Thanks! :) PS: all I know is I can ...
0
votes
0answers
51 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 ...
2
votes
2answers
117 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
240 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
62 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 ...
0
votes
0answers
142 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 ? ...
1
vote
1answer
232 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 ...
6
votes
1answer
253 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 ...
1
vote
1answer
854 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: ...