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

learn more… | top users | synonyms (1)

-1
votes
1answer
9 views

How to execute the “Visual Composer” code on a custom html page?

Visual Composer is the essential plugin for creating a website with Wordpress. I created an html page with Sublime Text without using the tools offered Wordpress and without using Visual Composer. In ...
0
votes
1answer
12 views

Undefined index for options table within custom plugin

I receive 3 undefined index notifications. This is the code it refers to. Notices are located at ** $guide_id = "0"; $guide_name = ""; $guide_description = ""; $options[] = array( $guide_id =&...
0
votes
2answers
20 views

What is the difference in the WP memory limits?

I have seen this question PHP Memory Limit vs. WP Memory Limit and it has a really poor answer and the question isn't that good either. I am on a dedicated server and can do whatever I want. I want ...
0
votes
0answers
14 views

Plugin “Remove Slug From Custom Post Type” gives 404 Errors

This plugin did all I wanted, but it started giving me 404 errors, which go away after a while but I'm worried they'll come back. I do get this error while posting a new listing (real estate theme) ...
0
votes
0answers
9 views

Ajax interfering with widget back end Javascript

I have a plugin that creates a widget that allows users to click a button and select an image. I have noticed that immediately after the widget is dragged and placed into a widget area, two Ajax ...
0
votes
0answers
18 views

Pass the data from Custom Form in wordpress

How can I get the value from custom form in WordPress and stored into teh database? Here is my form. I used the bootstrap validator for this form. Now, what do I have to do to get data from this form? ...
0
votes
1answer
19 views

Combine CSS and JS files from plugins

I want to combine all my CSS and JS files. Given the fact that I use different plugins I don't see a way to do this manually because after an update of the plugin I have to start all over. So I did ...
0
votes
1answer
29 views

After upgrade to php 7 plugin/them updates broke

I upgraded my Ubuntu server to php 7 and setup ssh2. Afterwards, my WordPress plugins/themes will not update. I am receiving the Unable to locate WordPress Content directory (wp-content). This ...
-3
votes
0answers
24 views

error in a php snippet: is_checkout() [on hold]

I am seeing a new error in a snippet I've been using successfully (until recently). Something in this line is off... if ( ! is_checkout() || ( is_checkout() && WC()->cart->...
0
votes
0answers
20 views

Weird Space /margin in a paragraph

I don't know how to remove this space to the right of a paragraph here: http://staging.comm-tech.org/?page_id=128 The code is <?php get_header(); ?> <div id="content"> <?php ...
0
votes
1answer
24 views

Child theme functions.php file change database entries

I'm sure my title is not the correct terminology. I will do my best to explain what I'm trying to accomplish. Years ago I spent countless hours customizing a theme. I was finally forced to update ...
-1
votes
0answers
25 views

How to make random order ACF gallery?

My code is: <?php $images = get_field('gallery','option'); if( $images ): ?> <div id="slideshow"> <?php foreach( $images as $image ): ?> <img src="<...
0
votes
0answers
16 views

AJAX call to Vimeo API from WP admin

What I am trying to do is query the Vimeo API to populate some ACF fields in a custom post type. I'm loading this in the admin head for WP Editor, which grabs the Vimeo URL from the ACF field, and ...
-3
votes
0answers
31 views

Extend Wordpress plugin “The events calendar”

I'm a newb in wordpress plugins, and I need to extend popular plugin "The events calendar" by using hooks in functions.php or creating new plugin. First question, at the moment its twentysixteen ...
0
votes
0answers
10 views

Woocommerce how to make the sub-category sorting to be seen on sub-categories also?

i found a code that adds this sorting to Woocommerce Category pages. the problem is that i only see it on the Parent category and not the sub-categories pages. can some one tell me what should i add ...
0
votes
1answer
36 views

Basic PHP question (displaying post title over thumbnail)

I'm new to PHP so excuse the vagueness of this question. I am using a plugin called WP-Tiles that takes a group of posts and displays them in a grid. I'm calling this grid with the following function: ...
0
votes
1answer
20 views

WP_Query Custom Post Type if Category ID Equals

I've setup a custom post type "slides" and I've created two categories for the slides custom post type: "slides-testimonial" (id = 7) and "slides-regular" (id=8). I would like to run a single loop, ...
0
votes
1answer
24 views

Only Get A Certain Number of Posts From WP_Query

I'm not sure what I'm doing wrong. None of my WP_Queries are returning the given number of posts. From what I can tell, it's returning all of them. How do I fix this? Here is the code I'm currently ...
0
votes
0answers
9 views

Get a color name from any RGB combination (script included) [migrated]

i am returning a hex and an RGB color in my app (from camara) and i want to use a script to identify that color and display a name... ive found http://gauth.fr/2011/09/get-a-color-name-from-any-rgb-...
0
votes
0answers
23 views

Custom Meta Box Image Gallery Not Saving

I'm having an issue of a custom meta box I'm building based off of WooCommerce's Product Gallery meta box. The meta box is not saving for some reason. I've tried some options from many different ...
0
votes
0answers
15 views

Woocommerce echo last updated?

How can I make it to print out a "Last Updated: XX-XX-XXXX" each time a Woocommerce product is updated? I sell ebooks and I want it to appear every time I update the product so my clients know when ...
0
votes
1answer
22 views

customizer live preview layout picker

I'm trying to create a layout picker option using the wordpress customizer. What i've done so far works except for the live preview. when i change an option in the customizer for example left sidebar ...
-1
votes
0answers
16 views

How can I echo the latest time a Product was updated (Woocommerce)?

I would like to print out when the product was last updated, as I sell online courses. Any idea on how to implement this as a shortcode?
0
votes
0answers
25 views

Unable to view data in Options table for plugin

I've created a plugin which contains a form and I am trying to get the data from the form to post to options, but the data is not. I've checked in wp-admin/options.php and the plugin does not contain ...
0
votes
1answer
18 views

Custom Post-Type not in admin menu

As I'm working on a private and custom theme for my website, I created custom post-types for different kinds of data i want to display (and adding extra data with custom fields). Anyways, as I ...
0
votes
0answers
23 views

Wordpress Pings Backs From My Own Application

I'm building my own forum software and I would like it when a user creates a post with a link to a Wordpress site it will notify the site that I have linked to it. I've searched around Google and I ...
0
votes
1answer
20 views

Issues separating my Plugin pages into different files

As my last (first) plugin got a bit hard to manage with 6 admin pages in 1 file, I decided to split them up for this one, but I am getting nothing but issues doing so. In my plugins functions file (...
0
votes
0answers
30 views

Wordpress theme not show php correctly

On my server i got an updated version of WP, with a working theme. I just made a new one. The problem is that when i activate it, (or just preview it, via customize) it doesen't render php script. ...
-1
votes
0answers
24 views

How to test the recruitment function - Job posting? [closed]

My current theme has already integrated the feature of "Employer" to be posted jobs, as the role and process they have to choose one of the subscription & get payment option before post jobs. This ...
-1
votes
1answer
34 views

How to insert current “login” page to certain page?

How can I insert the current "login" page to another page for visitors? Basically, means that if a visitor wants to view some pages, once they click to view pages and where it should display "login" ...
0
votes
0answers
15 views

Override $table_prefix only for the options table

The only documentation i found was too obsolete. (https://wordpress.org/support/topic/two-sites-two-themes-one-database-same-content) and this one (Change options table prefix only) doesn't help me. ...
5
votes
4answers
214 views

Does My Child-Theme Functions.php Need if{die} Security In It?

I'm new to PHP, but I've noticed just about every PHP file has a security snippet, "Die if not accessed in the correct manner" script at the beginning; my question, does a child-theme functions.php ...
0
votes
1answer
24 views

How to display all custom fields associated with a post type - IN THE ADMIN AREA?

I know know how to get all the custom fields from a custom post type, that's easy. However, when I create a custom post type, it displays a beautiful page automatically in the administration part of ...
0
votes
1answer
44 views

How to create a thumbnail with php?

I am creating posts using wp_insert_post(), but these posts do not have featured images. I have a post ID, and a path to the image on my server, how do I set them as the featured image? EDIT : I ...
1
vote
1answer
48 views

Wordpress admin is incredibly slow

I built a WordPress site for a client a couple of years ago and over the course of those years, they've accumulated 21,000+ articles, have 30,000-50,000 views per day, and have 300+ active writers, ...
-1
votes
0answers
30 views

How to create search page for multiple custom post type

Is thr any way to create search page for multiple custom post type, I have tried lots of thing but failed to do so, It works fine with single custom post type but I cant get any result on multiple ...
1
vote
1answer
23 views

From where the header-text can be changed in WordPress custom header?

I am developing a small theme as I am beginner. I am setting up custom-header using add_theme_support() function. From there I can change the header image in the front end. Ok, so far is good. Now In ...
0
votes
0answers
19 views

Display XML - basics [on hold]

I have the below xml on a secure FTP server (I have a cron job downloading the file from the ftp to my web server at 5 minute intervals). <document version="4.0"> <incidents profile="...
0
votes
0answers
13 views

Retrieving cell values from options table on specific page template

I outsourced this task to a contractor over the past week as i'm up against it timewise. The contractor has been unable to deliver it, so i'm looking to try and get this solved myself asap with a ...
0
votes
0answers
12 views

Pass JS VAR back Through AJAX

I have a PHP array that contains the post IDs of categories collected using AJAX that I need to pass back to be used in jQuery; Array ( [0] => Array ( [id] => 15 ) [1] => Array ( [id] => ...
1
vote
1answer
51 views

Why not yield/iterable in posts interface?

I was reading an article on the advantage of yield statements and iterables - a handy and useful thing where "the list is so large that merely creating it would consume all of the system's memory" ...
0
votes
0answers
14 views

Using the function of wordpress in the director on another folder

In the public_html I have installed my wordpress there, the folder wp-content wp-admin were there I'm thinking if I have another folder called 'test-folder' and I have a file there which is test.php ...
0
votes
0answers
11 views

how do i add an array of objects or an extra field to a wordpress json api core controller?

Is there a way to add an array of objects to a core controller of the json api plugin the core controller i want to modify is 'get_category_index' and it returns these objects id post_count name ...
-2
votes
0answers
14 views

what is span style in wordpress.com blog? [closed]

See https://en.support.wordpress.com/create/ specifically at “You can’t wait for inspiration. You have to go after it with a club.” Now I read the source code of that specific snippet. It shows :- &...
-3
votes
0answers
13 views

Woocommerce product list layout [closed]

Is there a way of displaying the product results in woocommerce so they are in 2 coluns with the product title and price to the right of the product thumbnail?
0
votes
1answer
53 views

Woocommerce: Programatically link all attributes [closed]

I'm trying to create a product with multiple attributes and then create the variables from those attributes. So far the product creates fines & the attributes are all assigned correctly. I can ...
0
votes
0answers
11 views

What is the best option to change menus automatically using cookies in a Multisite installation?

I am developing a Portal using the Wordpress Multisite option. I would like to create a portal's homepage with options that direct the user to his country's website (Subdirectory). And i would like ...