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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Theme customizer: filter a child <select> based on a parent <select>? [on hold]

if it posable to create some function that will allow us to filter a child based on a parent ? somthing like this: <select id="parent"> <option value="1">Group 1</option> ...
0
votes
1answer
25 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
1answer
20 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
27 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
0answers
11 views

Custom search engine optimization

I am creating a search engine that receives, via POST, the information on a form containing several checkbox. See below that there are several sequences of results and is marked in orange one as an ...
1
vote
2answers
409 views

Include a specific post to the query_posts and remove it if it is already in the returned list

Bare with me. Firstly, here is my whole script for my featured slider articles: <div id="featured" class="<?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo ...
0
votes
1answer
34 views

Display post from a category

I am not php developer and I need to modify a theme, concretely the area has different categories, for example: "Adopted cats" and "Adopted dogs" both are in the same page, at the moment with ...
0
votes
1answer
27 views

Woocommerce filter cart and category specific quantity [on hold]

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
2answers
29 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
2answers
596 views

You do not have sufficient permissions to access this page while making a plugin

You do not have sufficient permissions to access this page. This is the error i am facing while making my own plugin.Actually, i want to link to another page. Wordpress version is 3.8.1 I made a ...
1
vote
2answers
2k views

Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page

I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
0
votes
0answers
32 views

How do I get a custom field to work in google maps as a javascript variable [on hold]

I have a custom post type called "events" and I'm storing latitude and longitude in a custom field. I want the events to display in a google map. How do I convert a custom field in to a javascript ...
-1
votes
1answer
11 views

Changing a variable to another [on hold]

Yes, this is related to WooCommerce, but does not relate to that topic only. If you've flagged me already at this point, good job. If you're actually willing to help me with PHP, thanks and here we ...
-1
votes
0answers
10 views

Editing the Post meta

I am trying to add some content to the post-meta. I have added two link to the loop and it's been showing in the post as the single page is calling it. However I can't seem to find where to add the ...
0
votes
1answer
464 views

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post's taxonomy terms & the term's associated images. Ideally, I'd like the taxonomy description ...
0
votes
0answers
15 views

Building large menu from many other menus

Can I use following script to build my primary menu which includes items of many other menus? Example: my main menu looks like this - -1 --1.1 --1.2 -2 and I have many other menus with ID = (1.1, ...
0
votes
1answer
58 views

How to build shortcode for tabs

i made a tabbed widget to display recent post , comments, and popular posts, but now i want to take out tab function from this and make a shortcode of it, so i can add it to wp posts and use it there. ...
0
votes
0answers
14 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
20 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
0answers
5 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
1answer
22 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
19 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
1k views

Convert WordPress date format to jQuery UI Datepicker format

I wrote the following function to convert the current WordPress date format into a format that can be recognized by the jQuery UI Datepicker: From: http://codex.wordpress.org/Formatting_Date_and_Time ...
0
votes
1answer
20 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
0answers
15 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 ...
1
vote
1answer
802 views

Error: options page not found

This error is really well known and every where I look its either I am not doing: <form method="post" action="options.php"> or I am not registering my options, which is not the case as seen ...
0
votes
2answers
18 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 ...
-2
votes
0answers
10 views

Wordpress Plugins: Should I use Marketpress or Woocommerce to create and ecommerce website? [on hold]

Extended... If anyone were to suggest using marketpress, is it free? What themes should I use with it? Thanks,
0
votes
1answer
18 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
11 views

WooCommerce Products Admin page (edit.php) is only searching the trash [on hold]

When searching for products on my WooCommerce site from the backend (edit.php), by default the results are being returned filtered for &post_status=trash. I want to search all products, not just ...
1
vote
1answer
901 views

Remove wp-mediaelement.css from wp_head

I´m customizing the new core audio/video player via CSS in my styles.css. I tried to remove the wp-mediaelement.css with the following code in functions.php, because I don´t need it anymore. function ...
1
vote
2answers
1k views

How to put JQuery/Ajax inside shortcode?

The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
0
votes
0answers
25 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
30 views

Network installation giving errors when viewing or adding a user

I have just installed a fresh version of WP which I have turned in to a network install (using the instructions found here). All seemed to be going well, and I was able to add a new site ...
0
votes
0answers
13 views

Wordpress plugin that assigns multiple tags/groups to categories [on hold]

Does anybody know a WordPress plugin that assigns tags to multiple categories ? I own a anime based site and i need to assign multiple tags/groups to a category. I already tried the Tag Groups plugin ...
0
votes
0answers
19 views

Why am I getting syntax error, unexpected 'endwhile' (T_ENDWHILE)? [on hold]

When trying to preview a page I've created, I get this error: Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE) in ...
1
vote
1answer
22 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
20 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', ...
-1
votes
0answers
8 views

From ZyroBuilder to WordPress [closed]

I've built a simple site with Zyrobuilder, but now i want so better functions and plugins, for that i'd like to use WorldPress instead, but is it posible to move my site (like php files from Zyro to ...
0
votes
1answer
48 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 ...
0
votes
1answer
10 views

Extract and display user infromation on an automatically created page

Is there a way to get the block of code below to extract a list of given user information as it creates the page for the new user. It creates new page for new user as supposed but I'd like it to alos ...
0
votes
1answer
29 views

Function Display article [closed]

I am new in Wordpress ... I developed a theme and I want to display the contents of a specific item ID in a div. For example...I create this div. <div id="myarticle"> //function php WORDPRESS ...
0
votes
1answer
390 views

OG:Audio facebook meta tags

Does anyone have any Idea how to populate the attached audio file URL into meta elements? Just as you would featured image or something Here's what I tried: <meta property="og:audio" ...
-1
votes
2answers
22 views

preg_replace function [closed]

i'm stuck in the use of the preg_replace function. I'm searching for the attribute of data-playlist to make a link on it i'm calling the function in my content: <?php $id = get_the_ID(); ...
0
votes
1answer
14 views

Add shortcode in my div

I want to add a shortcode in a div created by me in my theme This is the div: <?php if(!is_home()): ?> <div id="cristi"><?php echo get_the_content(1); ?></div> ...
0
votes
2answers
641 views

get_post_custom single array

Is there a way to return single values only when I run get_post_custom($post_id); it seems that I'm receiving double array, even when there only one value for this meta_key
0
votes
0answers
26 views

how to echo correct in wordpress? [closed]

i run wordpress on a site - and i have some plugins in it.. in themeheader of a wordpress i have a metaslider running i call it like so: echo do_shortcode("[metaslider id=112]"); question: can ...
0
votes
1answer
1k views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
-2
votes
1answer
36 views

Help with if/else loop [closed]

can you help me to add an else statement to this loop? <?php $post_type = 'post'; // <-- Post Type $tax = 'temporada'; // <-- Taxonomía $termino = get_terms($tax); $category = ...
-1
votes
0answers
13 views

Proper placement for Wordpress conditionals(they return false) [duplicate]

I use a headway template, and have tried to place conditional tags inside footer.php, in order to display a code only in home page, but the code is not working how I want. Normally, the code ...