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

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

How do I build a WordPress website to process user form data and display matching results from a database

I would like to create a web page where a user can enter form data in fields and when the submit button is clicked the form data should be used to filter a database (csv files for now) for matches and ...
0
votes
0answers
11 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
0answers
8 views

Woocommerce place order button not proceeding to payment

Since updating to woocommerce 4.3.5 The place order button on the checkout page just refreshes the page and doesn't proceed to the payment page. I am getting no php post errors or ajax errors. Has ...
0
votes
1answer
28 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
12 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
4 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

Usage of god-like classes in plugin development [on hold]

In the following example class definition, only the eat(), sleep() and play() methods are relevant to the class Dog. Whilst relevant to the plugin as a whole, i18n() and enqueue_scripts() are not ...
0
votes
0answers
9 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
17 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
22 views

Dynamically pre-populate Gravity Forms field with custom fields from custom post types [on hold]

Tried to be as specific as possible in the title. Essentially I have a real estate site that I am working on that has property listings. The property listing is a custom post type and there are ...
-1
votes
0answers
11 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
14 views

Adding Item and Coupon Programmically via WooCommerce [on hold]

Since WooCommerce updated to 2.3, my previous function is not working for adding a coupon and an item, if an item already exists in the cart. function add_product_to_cart() { if (!is_admin()) { ...
0
votes
1answer
13 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
23 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
0answers
17 views

Custom search engine optimization [on hold]

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 ...
0
votes
0answers
14 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
35 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 ...
-1
votes
1answer
13 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
12 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
36 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
32 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
20 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
30 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
31 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
35 views

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

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 ...
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
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
1answer
25 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
17 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
21 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
19 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
12 views

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

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

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

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 ...
0
votes
0answers
29 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 ...
0
votes
0answers
16 views

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

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
22 views

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

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
24 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
10 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
65 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
13 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 ...
-1
votes
2answers
23 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
16 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
0answers
27 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 ...
-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 ...
0
votes
1answer
42 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
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
22 views

How can I 'reactivate' .PHP files within a WP plugin that have been marked 'inactive'?

I attemped to edit .PHP files associated with a plugin through the Editor in Dashboard while the plugin was active - all .PHP files associated with that plugin have now been marked 'inactive' and the ...
-2
votes
1answer
37 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 = ...