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

learn more… | top users | synonyms (1)

0
votes
0answers
26 views

Echo date picker field returns fatal error

I'm having a semi PHP/AdvancedCustomFields question so I hope that it's ok to ask it here. I'm trying to echo the value of a date picker field which is formatted as DD d MM yy (JS date format). If ...
0
votes
0answers
18 views

Is it possible to place plugin files inside a Wordpress theme?

Is it possible to place plugin files inside a Wordpress theme? I have customize the plugin and on updation of the plugin all the code will be lost.
0
votes
0answers
22 views

How to rename the page category link [duplicate]

I have tried multiple different ways to get a piece of functionality to work in my site. I have also attempted to hire multiple freelancers but after being told my orginal idea wont work I am having ...
0
votes
1answer
25 views

Page returning ID from array, how to return the correct values for post in acf wordpress

Im having a little trouble returning the correct value with the relationship field. My end result is to use the relationship field to add selected locations to a drop down in gravity forms. I can ...
-1
votes
0answers
26 views

Backend editing admin, I wanted to insert this metabox into the product>category

Backend editing admin, I wanted to insert this metabox into the woocomerce product category or product>categories>clothes add_meta_box('pmpro_page_meta', __('Require Membership', 'pmpro'), ...
-1
votes
0answers
16 views

Is there a way to shared product category taxonomy into post category in backend?

Is there a way to shared product category taxonomy into post category in backend? I have tried this method: woocommerce/includes/class-wc-post-types.php Line 51, you'll change from apply_filters( ...
0
votes
0answers
11 views

Use function in stylesheet [duplicate]

I have an Advanced Custom Fields plugin. With ACF I made a colorpicker for every page. I want the color to load in the stylesheet, but this doesn't work the way I want. This is what I have now: ...
-1
votes
0answers
15 views

How to avoid to lose my theme customization when the theme will be update? [duplicate]

I have the following problem. I have to modify a JQuery function into a file named custom.js into the theme that I am using for my website. I have no problem to implement my customization to the ...
0
votes
0answers
23 views

Export Wordpress Table to CSV from page

I want to export my members table to csv format on my default download location. So I used a shortcode in functions.php and called it on a page. I am getting an already sent header warning and csv ...
0
votes
0answers
23 views

Display parent and child taxonomies in separate drop down select fields

I've used a piece of code from another question here but my second select field did not changed accordingly. Can anyone tell me what's wrong? Below is my code: My php functions: function ...
0
votes
0answers
25 views

Designing custom templates and managing conent

I am web developer with little wordpress experience. What I am trying to do is develop and style a website to my liking using pure html and css and then use wordpress to allow the end users to edit ...
0
votes
0answers
33 views

Hide the Wordpress CMS and Integration Plugins from Source [duplicate]

I looked alot on the internet and still not figure out the exact manager of thing I want. First of all sorry if i am going wrong on question but here it is: Websites like www.bewakoof.com and ...
0
votes
2answers
25 views

Custom 404 error does not always appear

I recently created a website at www.volatileinterface.com, using WordPress. I am using the cyanotype theme and I wanted to create a custom 404 error page for when a webpage could not be found. I ...
0
votes
0answers
20 views

WP-CLI without phar

I've been trying to get WP-CLI working on a server compiled with --disable-phar (probably for security reasons). Is there any way I can override this and get WP-CLI working anyway? These are the ...
-1
votes
0answers
21 views

Help in editing the code, image dimension, image file size and image type [duplicate]

Help in editing the code, the code works but there is thing one conflict. What I wanted is only 3 things, 1-image dimension, 2-image file size and 3-image type. what I wanted is if the users doesn't ...
-1
votes
1answer
57 views

Can someone help me edit the code for limiting image dimensions

Can someone help me to edit the code. The code seems to be working, but there is a problem, when I add a new plugin in wordpress, it prompts error. This code alert/error should only be in media ...
-1
votes
0answers
19 views

Change “Back” button text depending on where you came from? [on hold]

I have added a custom "Back" button to the product pages of a website I am working on. I used this code: <input type="button" value="Back" onclick="window.history.back()" /> However, I ...
0
votes
0answers
21 views

How do I add and verify new user meta data?

I'd like to give users a field that they can fill out -- with an option for me to verify / not verify. Take for example every user has a field -- Total Cars Owned : [number] They can enter in ...
0
votes
0answers
32 views

How can I convert this SQL query to delete duplicate posts by specific meta_value instead of post_title?

This query works exactly as it should to DELETE all duplicate posts by post_title for my custom post type: $sql = " DELETE a.* FROM wp_posts AS a INNER JOIN ( SELECT ...
-2
votes
1answer
23 views

Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]

Having issues with a line of code that's in an if/else statement. It's PHP so I should be using php echo to make it work but I can't seem to get the coding correct. Here's what it should be ...
-1
votes
1answer
37 views

Create new WooCommerce product (PHP) after submit form [SOLVED] [closed]

EDIT: You'll find my own solution at the bottom, on a new answer I have a website where the user uploads a file, then I calculate the price for whatever I do with his file and then they pay for it if ...
0
votes
1answer
69 views

Why does $_SESSION only work when I am logged in?

I am including a pure PHP library (nothing to do with WordPress) into a few of my page templates. This library calls PHP session_start() function and references the $_SESSION["cart"] global variable. ...
0
votes
0answers
8 views

WordPress - Breadcrumb in custom post types

So, I am trying to use breadcrumbs underneath my navigation, but with no luck. I am following this tutorial but when I start browsing into my custom post types, it goes wrong. For example - I have ...
0
votes
1answer
24 views

form $_post action value gets truncated after it passes through two forms

There are three pages page1, page2 and page3. When I press submit on my first form on page 1 my group name field can be catched with $_POST['groupname'] in the destination page but in the page 2 I ...
0
votes
0answers
17 views

Passed variable gets undefined variable error on insert on next page

I am passing a variable with $_POST to another page and on the destination page I want to perform an insert operation and want to use that passed value . The variable "$mygroup" is coming from a forms ...
0
votes
0answers
6 views

Utilizing 'link format' in WordPress without losing SEO value?

In many WordPress themes that support formats, applying the link format to a post makes its title point to a URL (examples can be found: Daring Fireball and MacSparky). In the theme I'm using, the ...
0
votes
0answers
16 views

myCRED do_shortcode issue

i found a code to create a timer. I want to use it for delaying a do_shortcode commands but i don't work... the shortcode is execute when the timer is to 1:00 and i want to execut it when the timer is ...
0
votes
2answers
16 views

Accessing values entered via form - try again

I have entered a form element into the page contents editor in wordpress. form action="/home4/stevekeo/public_html/wp-includes/testforms.php" method="post"> ... I want to use the selected value, and ...
0
votes
0answers
13 views

Accessing values entered via form

I have entered this form element into the page contents editor in wordpress. <form action="/home4/stevekeo/public_html/wp-includes/testforms.php" method="post"> <input type="radio" ...
0
votes
1answer
49 views

submit the form to same page

I have a simple form , all I want is to submit the form to same page. I have tried reading other answers including action="" - wordpress says Oops! That page can’t be found. action="#" - wordpress ...
1
vote
1answer
34 views

Any way to add -1 suffix to the end of every new post?

As you probably know, if a new post has the same post_name as another one, WordPress automatically appends it with -2, -3 etc. But is there any way to add -1 at the end of a post if there isn't one ...
0
votes
1answer
54 views

Add prefix to link url

I want to add image link on wordpress site which redirect the user to the another page of same url but with different prefix. for example page url is mydomain.com/post1234 when user click the image on ...
0
votes
0answers
9 views

If meta_data <= 50 [migrated]

I'm trying to automate the delivery (free above 50) message in my template. Currently I'm echo'ing the normal price & discount price (if available) which results in digits. I have a post with ...
0
votes
1answer
33 views

plugins_loaded action is not working properly

I am trying to send an email to the user after form submission but I get an errorCall to undefined function wp_mail() in C:\xampp\htdocs\wordpress\wp-content\plugins\contact ...
0
votes
0answers
63 views

Get month and day from a Date Picker custom field

I've got a custom field called fecha_del_evento from which I want to obtain the day and the month in different formats; day in numbers, and month with the 3 first letters. The code I'm using is a ...
0
votes
1answer
26 views

Nonce fail after second submit attempt

I am refactoring my plugin that resets the WordPress database tables back to their defaults and came across an issue. The form submission itself works fine. However, after the first submit, and if ...
0
votes
0answers
26 views

Shortcode At top of Page - PHP 5.5 vs 5.4 - ob_start();

add_shortcode( 'recent-events', 'recent_events' ); function recent_events( $atts ) { ob_start(); $atts = shortcode_atts(array( 'count' => '2', 'columns' => '1' ...
0
votes
1answer
47 views

Add logo to admin menu in my plugin

I want to add a simple piece of code: <img src="logo.png"> to the top of the admin menu. I know how to do it if I am just replacing a logo within an already existing class but there is no ...
0
votes
0answers
24 views

After refresh settings field disappers

I'm working on a little plugin project to help gain a better understanding of wordpress development. So far i've been able to create dynamic text fields which a user can add themselves. Whatever the ...
-2
votes
0answers
32 views

How to use abstraction layer with WordPress [closed]

I am new in WordPress. I want to use abstraction layer with WordPress. Please help me. How can i implement abstraction layer with WordPress. If have any plugin please let me know. Thanks in advanced. ...
0
votes
0answers
12 views

Creating a user 'add custom field' section

I'm trying to make this plugin where users can add a custom attribute for something i working on: So far what i've done is: which uses this code here: window.addEventListener("DOMContentLoaded", ...
0
votes
1answer
44 views

how to disabled a button when press three times

Hi I just wanted to ask if there is a possible way when the word edit was press three times, the edit will be disable. on the image I have attach is a multivendor page, vendors can edit there ...
0
votes
1answer
19 views

Inserting two categories

I am trying to define two categories together in a post. please tell me where i am doing wrong. 'post_author' => $user_id, 'post_status' => 'pending', ...
-1
votes
0answers
14 views

How to add custom fields to a form?

How can i add simple text input custom fields to this kind of front end submission form? The code <form id="new_post" name="new_post" method="post" action=""> ...
0
votes
1answer
12 views

Access preview settings in php

I'm working with the customize section of my theme framework. And I'm trying to get the preview settings in PHP when using refresh, but I only know how to access the saved settings. Short Story I ...
0
votes
1answer
52 views

Get html data with javascript to php array and store to wordpress database

What I wanted to do is get the items that are dropped to the droppable area and stored it a php array so that I can store into database so that I can access the stored array from other parts of my ...
2
votes
0answers
20 views

Cropping, Re-sizing and Saving images from one folder to another folder in wordpress

I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images. ...
0
votes
0answers
25 views

Error:The Page isn't redirecting properly

I've mounted my wordpress under a subdomain while I am working on theme development. The code in question is placed in the functions.php file under my child theme. Here is the functions.php file in ...
0
votes
1answer
53 views

How to check if a plugin (WooCommerce) is active?

I am trying to modify the head and foot of my WooCommerce pages. I have an if statement that is supposed to target the shop and cart of WooCommerce, but it isn't. If I modify the PHP after the if ...
0
votes
0answers
13 views

How to control the the URL of a Custom Post Type to have multiple slugs?

I currently have a custom post type whose rewrite rule is this: 'rewrite' => array( 'slug' => 'tests', 'with_front'=> false ), So the URL is www.domain.com/tests/post-name ...