The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
1answer
32 views

Updating From Mobile App - Exposing Site to Hacking

I have made a simple Mobile App to update a wordpress site. It starts with a login (to the app) and then with forms, sends data via POST method to a PHP file that then uses wp_insert_post, ...
0
votes
0answers
15 views

keep parent slug active in menu when child menu is hidden

i want to know how to keep a menu active when child menu parent_slug is null and i don't want show that menu to user because its my edit menu add_menu_page('Manage', 'Manage', 'administrator', ...
-1
votes
1answer
57 views

My wordpress website admin panel loads very slow, what can i do about that? [closed]

I am having a very slow load time for long time now, I read absolutely everything that I could about how to speed up my WordPress website hosted on azure, However there things that I am not capable to ...
0
votes
0answers
20 views

Limit Taxonomy Parents

I've got a custom taxonomy set up as hierarchical, with a custom function to limit the number of categories the user can select to one. I also need to limit the depth that this custom taxonomy can ...
0
votes
1answer
21 views

wordpress add_action() issue in ajax call

After a hole day finding solution for the issue, i didn't get what is exactly i am making the mistake. Please give your valuable answer for my issue and humble request not to block if you can't ...
0
votes
0answers
7 views

How to handle loading all Post records and allowing user to select which ones they want inserted into newsletter?

For a while now I have wanted to build a new WP PLugin that allows you to selects Posts and generate a MailChimp Newsletter. It let's you use a template and select all the posts you want in the ...
0
votes
0answers
23 views

Form in page template not working or updating

I have a gallery of images with a button for each image. When a button for an image is clicked I want the custom field, called count, be updated with the newcount... but the form method is not ...
-1
votes
1answer
20 views

how can I make content from a plugin hidden when user is logged in? [duplicate]

I would like to make my social icons at the top of my page disappear when a user logs in to my website... what is the best way to go about this and can you give me all options that are possible ...
0
votes
0answers
12 views

Need help displaying array content programmatically [migrated]

I have an associative array that contains key pairs for the titles of a jQuery navigation list that is working for the portion of the code. See left side of the picture below: The problem is on ...
0
votes
1answer
17 views

Class property seems to lose scope, attached to save_post action?

This may be more suited for StackExchange, so if you think that would be the right place to direct my question - please let me know :). So, I have a class with a property of save_list. This is an 2D ...
0
votes
1answer
35 views

main menu page redirects to user ID

I have a site that displays fitness results to clients. It works by showing them a page based on their UID displaying unique charts and graphs etc. I can redirect members to the unique pages on ...
0
votes
1answer
25 views

Non-array argument in array_merge()-function [closed]

I'm building a small plugin, basically with a settings page that holds four text fields and two checkboxes. Everything works fine, including the checkboxes - as long as one or both of them are ticked ...
0
votes
0answers
16 views

Categories in the wrong order php

I have this code of php and it pulls categories in the wrong order <?php $args = array( 'hide_empty' => false, ...
-1
votes
1answer
31 views

How can I make content disappear when a user logs in?

I am working in Wordpress, and I would like to make certain elements disappear once a user logs in. How can I do this? I have social icons on my page that I positioned to the center of my menu bar at ...
0
votes
0answers
11 views

Wordpress supercache real time preload

When a user create a new post, WP automatically share this URL in Twitter. This cause Twitterbots and other crawlers make many http request. All this process occur in 3 seconds where WP receive 6 to ...
2
votes
1answer
88 views

How to make a variable available for the duration of the page request

I'm trying to limit the number of database reads per page request. Currently, each time the get_avatar hook fires, I make a call to get_option() which returns some data. The $data returned doesn't ...
1
vote
2answers
45 views

I don't understand how this parameter works..?

Ok, I've got this simple code for a simple plugin which prepends post titles with the word TESTING.. I'm really unclear how the parameter works here. I understand how parameters work in PHP, but ...
0
votes
0answers
17 views

Gabfire Widget Image Too Small

I have an issue with an updated widget on Wordpress. I have a sidebar Widget using Gabfire's Widget Pack which is running version: 1.4.4, Wordpress: 4.1.1 and Theme Patterns which is also up to date. ...
0
votes
1answer
23 views

Adding a “Word” in php code

So, I know title is super confusing but I didn't know how to word it. In the following code, the word "View:" is placed and displayed properly on the page. <div ...
0
votes
2answers
63 views

Applying CSS on PHP variable [closed]

I have PHP code as $message = str_replace("{eventlinkURL}",$eventlinkURL,$message); I want to set color to the $eventlinkURL variable. I tried using <font> echo "<font ...
0
votes
0answers
42 views

Custom Theme's “Preview Changes” Doesn't Work for Previously Published Posts

After I've published a post and try to edit it again, clicking the "Preview Changes" button shows the version that was previously saved, not what I've written new in the editor. When a post is a ...
0
votes
0answers
13 views

Custom Fields: Linking a thumbnail to another image

I'm trying to figure a way to link a project, not to another page, but rather to an image that I'll eventually display in a lightbox but for now, it just links to the image in its' own window. That's ...
2
votes
2answers
29 views

Filtering the default avatar list

I'm using the avatar_defaults filter hook to filter the default avatar list. For example: function my_avatar_defaults( $avatar_defaults ) { $avatar_defaults['http://example.com/foo.png'] = __( ...
0
votes
1answer
40 views

Wordpress upload images not displaying

Hello I have a wordpress site and I upload images to media library but the images do not display. In wp-content/upload folder there are other folders like 2015/ and then in that folder there are ...
0
votes
0answers
27 views

Improve my timetable's code

I'm working on a wordpress theme and creating a time table who will be easy to complete by users. In the back-office, there are a checkbox for each days : <input id="checkbox1" ...
0
votes
1answer
49 views

How do I remove spammy links in WP theme footer?

I got a little obstruction. I have a free theme, which I like, but I found out that in the footer there are too many commercial links (Let me say spammy links). I want to keep the credits to the ...
0
votes
0answers
33 views

How to get Woocommerce order product info

I am trying to get all woocommerce orders and find info about the products in each order. I have seen many examples on here and elsewhere on the web and they all seem to say to do the same thing but ...
0
votes
0answers
14 views

XML feed failing to generate because it can't find a plugin

I'm supposed to be generated a feed through http://www.edifecs.com/e/feed/ to be then used through things like feedburner. But it encounters this error: This page contains the following errors: ...
0
votes
0answers
15 views

meta_query argument not working

I am trying to use WP_Query to search through posts BUT I want to also search by post_title as well, which is why I tried using meta_query in my arguments array. I want to actually do more than just ...
0
votes
1answer
32 views

Add specific content after specific text in every post

Suppose I want to add some imagess in my all posts Eg. I want add this : <img src="ad.png" > after this text That's all every post & that image should be different in different ...
-1
votes
0answers
19 views

wp_insert_post 500 server error

I need some help, im trying to do a wp_insert_post with a htmlform (php and wordpress). I keep getting a 500 server error and i dont understand why, can you please help me? (the prints and echoes is ...
0
votes
1answer
20 views

Randomize Color Scheme Selection in Theme

on my site I'm using cenetric, a child theme of genesis and this theme comes with some predefined color schemes. //* Add support for additional color style options add_theme_support( ...
0
votes
1answer
31 views

get_avatar from user id

1 - I have two members witch settings are set to subscribers. 2 - I have made a page in wordpress with the code: <img src="get_avatar" alt="Logano" ...
0
votes
1answer
77 views

Woocommerce filter cart and category specific quantity [closed]

So basically, I'm trying to filter my cart. I would like the message below displayed if products from the "cuvees" category are at the number of 4,5,7,8,9,10,11,13,14,15,16,17,19,21 in the cart. So ...
0
votes
1answer
64 views

Why wp_mail() function isn't sending any emails and displaying '0' in Chrome 'Network' response

I'm trying to send emails through wordpress using wp_mail() function and it doesn't seem to work. It's displaying 0 in Chrome 'Network' response with Status Code:200 OK this my code part: ...
0
votes
1answer
39 views

Is there any wordpress function to update a random post every 10 minutes?

I' m looking for a function which can be inserted in wordpress theme function.php , when inserted , i want it to update a random post (which is already posted ) every 10 minutes . can this be done ...
0
votes
0answers
26 views

Send email in wordpress

I want a functionality to send email in wordpress but what I have tried below code but what I want is that an additional textbox forinstance called "name" is appended to my email ... can be append the ...
0
votes
0answers
36 views

Restrict Editing by Category

I've tried every possible user role plugin for this, but each of them no longer work with the latest edition of Wordpress (Role Scraper, Restrict Categories, Advanced Access Manager, etc). If a plugin ...
0
votes
2answers
32 views

News and Featured image

I am trying to list my news items in 3 columns in a vertical design: image, date, title. I'm having some trouble calling the featured image. Is there a specific function that would help me with this? ...
0
votes
0answers
12 views

Automatic category assignment upon attachment upload

Lets say the media library has the following category [news, events, photo, page, post] Your wordpress also has the above 5 set as post-type. What I want is when 1- Events -> Add New 2- File is ...
0
votes
0answers
21 views

Custom function to add a secondary logo

I'm looking to create a custom function in order to be able to change/load a new image from the "customize" panel (this because I won't be the one who manage the website, so I'm trying to made things ...
0
votes
2answers
50 views

Get parent categories of custom post type

I'm trying to display all the categories that belong to the custom post type that the user is in. For example this post: http://bit.ly/1ANisxN Is a custom post type that belongs to this page ...
0
votes
0answers
28 views

Placing PHP inside Theme Accordion

I have already posted this on Wordpress.org support (with no response yet) however on the advice from someone they thought this website maybe better suited. I realize that short codes should probably ...
0
votes
1answer
28 views

Add a counter for mouseovers (custom field)

I am trying to count mouseovers on the div for each post. The div is inside the loop. I am almost there, I think you might have to just help me correct some mistake. The div and jquery. Notice that I ...
0
votes
2answers
25 views

Assign category a default post type

This one has been bothering me for a few days now, so I'd really appreciate any help you can give me. Problem overview: I have a plugin which automatically creates a post and assigns the category ...
0
votes
1answer
25 views

conditionally load a default static image if image metabox has no value

i have this basic while loop for my posts <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $title = get_the_title(); $article = apply_filters( ...
0
votes
0answers
39 views

Allow Contributors to View/Edit Other Contributors' Pending Posts

I'm using the User Role Editor plugin to modify my user group permissions, but it doesn't quite have everything I need. Does anyone know a way to restrict contributors from viewing/editing any posts ...
1
vote
1answer
46 views

wordpress count link clicks by ip address

I am building wordpress web site, which will have an option to download zip file from certain custom post type. By clicking on download button, user automatically starts with downloading zip file. ...
0
votes
0answers
24 views

Change php via js, is it possible?

i want to change my headers dynamically ( not in WP admin dashboard ) <div id="Header_wrapper"> <?php if( header_style == 'header-creative' ) get_template_part( 'includes/header', ...
0
votes
1answer
205 views

Catchable fatal error: Object of class stdClass could not be converted to string

I am trying to get the slug of a custom taxonomy for the current post that this shortcode is embedded in if the user doesn't define the slug he wants explicitly in the shortcode. function ...