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

learn more… | top users | synonyms (1)

0
votes
1answer
31 views

Form not working as it should in WordPress, but in a normal HTML site it does

I am in need of help. I have a website, which has a form to fill out (simple form, that calls a PHP function and some other JQuery libraries). It is made in an ordinary HTML file, and works well on ...
1
vote
1answer
30 views

Adding Taxonomy Image to taxonomy loop [closed]

I'm using the code below to show six random tags, adding a class on an <a> tag. $args = array( 'taxonomy' => 'post_tag', 'hide_empty' => 0 ); $tags = get_terms( $args ); $class_name = '...
0
votes
1answer
146 views

Wordpress File handle - fopen, fwrite not working with $.ajax or $.post Jquery

I am making some log for all the action done in the site that can be store in a .txt file. my php code in working fine when doing a normal load, but when i use ajax it seems like i doesn't read the ...
0
votes
1answer
36 views

Restrict characters in comment section

I am using Travelify theme and I am having some trouble restricting the characters in the comment section (textarea) or where the name or mail goes into the input tags. I read some articles about ...
0
votes
1answer
16 views

Create a hierarchical taxonomy list in Wordpress

First of all I want to thank all of your for reading my post and trying to answer my question. I'm having an issue regarding the taxonomies of Wordpress. I created a website with a custom taxonomy ...
0
votes
1answer
98 views

Woocommerce Product Add-ons - Auto-select first option

The agency I work for are trying to get a client's website to auto-select the first option on the maintenance packages for their products. Currently, we are using an if statement within a foreach. ...
0
votes
1answer
31 views

Foreach implode issue

I have this piece of code that gets the values of meta boxes in WordPress. $guiones = rwmb_meta( 'mb_guionistas', array( 'multiple' => true) ); $pieces = array(); foreach ($guiones as $item) { ...
0
votes
1answer
23 views

How to change text in a page by utilizing a custom user id?

I am looking for a way to change select text within the homepage on a particular site, utilizing a custom user id. I would like to be able to have multiple user id's for the same website without ...
0
votes
1answer
1k views

PHP code on Visual Composer Plugin

I want to add some php and html code in my page but i can't do it using Visual Composer, i can choose the "Raw Html" Box but that doesn't render PHP at all, only HTML. Do you guys have any idea how ...
0
votes
0answers
26 views

How do link to the most recent post in a category (Cornerstone theme)?

Hello friends :) I am in a pickle. I am creating a website in X/Cornerstone for an artist who has many projects , each has of which has its own Wordpress site. All of them rely on blog posts to ...
0
votes
1answer
45 views

Why isn't my custom Javascript showing up in my custom template?

I'm in the process of converting an HTML homepage to WordPress format and I'm not sure what to do with the Javascript that's included within the of the index.html homepage (as opposed to the JS ...
0
votes
1answer
124 views

Required PHP version: 5.3.3 - Version found: 5.2.17… How or where do upgrade to 5.33 [closed]

HI I am getting this error message when trying to activate simple google cal...Required PHP version: 5.3.3 - Version found: 5.2.17... How or where do I go in wordpress to upgrade to PHP version 5.3....
1
vote
1answer
49 views

I can't get my custom widget area to show on my Wordpress site

I can't get my sidebar to appear on my site. I add a widget section since there wasn't any: function.php <?php if (function_exists('register_sidebar')) // Area 1 register_sidebar( array ( ...
0
votes
0answers
39 views

How to use get_stylesheet_directory_uri() in an array?

I create an social icon placeholder on the WordPress theme. I am using this code: "url" => get_stylesheet_directory_uri() . "/images/rss.png" to placed a default icon. I's work on old WP ...
3
votes
1answer
61 views

Bypass .htaccess when using download_url

I've got the following .htaccess file in my a custom directory in Uploads called client. RewriteEngine On RewriteCond %{HTTP_REFERER} !(www.)?example.co.uk/client-area* RewriteRule ^.*$ - [R=403,L] ...
1
vote
1answer
86 views

WooCommerce Custom Product to checkout

I was trying to create a custom shop page for a project where users can click on a product to view the details in a modal window and select some options on price variations. What I want to do is to ...
0
votes
2answers
50 views

Correct and safe way to include php content in my page

I have a website where I use [insert_php] to insert php content to my page. What I do is simply use php's include inside insert_php to include my complex php script. I asked a question a while ago, ...
1
vote
1answer
135 views

AJAX success response is not working but it's saving my changes

I'm a beginner in jQuery-Ajax so please bear with me. My Ajax response does not seem to load but my changes are being saved. but gives me this error on admin-ajax.php "call_user_func() expects ...
0
votes
1answer
93 views

How Do I Add User Custom Field to REST API Response?

I am writing a WordPress theme that adds several custom fields to the user profile using the following function function add_contact_methods( $profile_fields ) { // Add Social Media Fields $...
0
votes
0answers
51 views

How to use pre_get_posts filter from frontend user input (GET variables) or do_action

I'm trying to allow users to filter certain pages based on the input from a dropdown. <div class="filter-by-calories"> <h3 class="filed-title">BROWSE BY CALORIES</h3> <...
0
votes
0answers
45 views

Wordpress Multisite trouble changing Apache port

I have tried many options and my localhost multisite stll doesn't work.I'm using wamp and I have two wp local sites. These are my folders: wamp/www/WP/Funanarchy first site: wp. second one: ...
0
votes
0answers
30 views

How to replace index

Hello everybody im trying to make plugin like WPTouch but different and i've got a question. How to replace content of homepage and single pages without header location i want to replace it on the ...
0
votes
1answer
34 views

How to edit the styles for the table of pages/post listed in the admin when you click on pages/posts?

It seems that some of the css on the table that shows the list of all the pages adversely reacts with one of my plugins, which adds a bunch of columns to the table. I'm pretty sure this is edit.php. ...
0
votes
1answer
33 views

Error display post thumbnails for previous and next post

I managed to display the thumbnails for the previous and next post on my custom post type but I keep getting this error "Notice: Trying to get property of non-object in C:\xampp\htdocs\tba\wp-...
0
votes
0answers
27 views

Display a portion/ branch of the menu

This in nice Wordpress menu filter from @Rarst for showing partial menu but this won't work deeper than level 2 menu. http://wordpress.stackexchange.com/a/2809/92020 I am not familiar with Wordpress ...
-2
votes
2answers
47 views

How to create a loop where loop changes every post?

How can I create a type of loop in WordPress where an image moves left or right for each post? I.e. first post image will be left, second post image will go right, third post image will go left, and ...
0
votes
1answer
32 views

Where is the php file of single member profile view (BuddyPress)

The edit.php file is for single member edit profile page. And I'm looking for the page that handle single member profile view. So the I can modify the display of user's profile view. Is there ...
0
votes
2answers
39 views

Childs PHP files not overwriting Parent's PHP files

I have a php file located at: .../wp-content/themes/kallyas-child/pagebuilder/elements/TH_TeamBox/TH_TeamBox.php I'm trying to use the above file to overwrite the parent's TH_TeamBox.php file which ...
0
votes
1answer
77 views

global $post inside plugin query messes up every new post page in wp-admin

I have a very strange problem that I am trying to troubleshoot: I have a query (to build an array) that I run on a custom post type inside my plugin. It looks like this: function makePointerQuery(){ ...
0
votes
1answer
30 views

'pre_user_query' interfering with user export

I needed to add sortable columns to clients wordpress for custom meta data I created so I used a pre_user_query hook add_action('pre_user_query', 'user_column_orderby'); function user_column_orderby(...
0
votes
0answers
16 views

How to load comments based on URL parameter(s), not post ID?

I've modified my wordpress install to grab data from an external db instead of relying on the post system. The problem is, the same comments are loaded regardless of the URL - of course this is to be ...
0
votes
0answers
39 views

Create a custom taxonomy archive to pull categories that have two matching taxonomies

I'm trying to create an archive page for a custom post type that will pull in taxonomy categories that match two per-determaned taxonomies. I do not need to display the products on this archive page. ...
0
votes
1answer
40 views

Validate Custom Post Type fields

I'm developing a plugin, in which the administrator has the ability to add and remove ZIP codes on the backend. I found that the best way to do this is by creating a custom post type named zip_code ...
-5
votes
1answer
47 views

Undefined variable in functions.php file [closed]

I'm new to php and I'm trying to figure out why the following error is occurring: Notice: Undefined variable: post in functions.php on line 59 Here is my functions.php code: <?php // related ...
0
votes
1answer
40 views

Wordpress language switcher doesn't work

I am using WordPress version 4.4.2. The problem I am facing is, I can not change the site language form Settings -> General -> Site language. If I change the language and hit save, the ...
0
votes
1answer
58 views

Importing demo data in Multisite

I have a multi-purpose theme, which allow to download complete demo site content/wordpress. Normally (www.example.com) it's perfect and run all demo request, last time i install a new wordpress ...
1
vote
1answer
64 views

How to find error in my code when the error message is pointing to WP core file?

While testing a plugin of mine with 4.5 RC of WordPress, after turning on debug in wp-config.php, I noticed an error showing up in a core WP file Notice: Trying to get property of non-object in /wp-...
0
votes
0answers
28 views

How can i implement “select from existing tags” for front end posting?

Hy,on the bottom of Tags: I want to add something to be able to select from existing tags. Something like on backend "Select from the most used tags" Here it's html and php code : case "window-...
0
votes
0answers
138 views

PHP Warning:fread(): SSL: Connection reset by peer in /var/www/html/wp-includes/class-wp-http-streams.php line 269

I have a WP website on an Amazon AWS Ubuntu server and the website keeps crashing, I think it happens when having a lot of traffic. This is the error I get as an output: ` [Mon Apr 04 00:13:56....
0
votes
1answer
30 views

Use variable in SQL statement

I have this: <?php $jerseys = $wpdb->get_results("SELECT order_item_id, order_id FROM wp_woocommerce_order_items WHERE order_item_name = 'Mystery Jersey'"); echo "<p>Jerseys</p>"; ...
1
vote
1answer
61 views

How to create a form and display its content as table in admin panel?

I am new to Wordpress CMS and have been into a problem and don't know how to go about it. The problem is I want to create a form with first name, last name, phone number and a submit button. On ...
0
votes
0answers
35 views

I would like to write the output of a function in normal post.php fields

I have this function, and it prints, displays these values ​​directly in the published posts: function gen_num() { global $post; $mixnames = get_post_meta( $post->ID, 'fieldnames', true ); ...
1
vote
1answer
85 views

My php header() function is not working [closed]

// Edit: I figured it out. Hours and hours of banging my head against a wall and it turns out all this needed was one simple line: ob_clean(); Somewhere in some included file there's probably one ...
1
vote
1answer
84 views

RecursiveDirectoryIterator not working in admin

my function below works error free when viewing the frontend of the website. But causes a fatal error when i login to the admin area. The errors say that it can no longer find the folder. //req all ...
0
votes
1answer
73 views

check whether a mail is send through contact form 7 using php

When the user clicks download button, a contact form should be opened, and when he submits it successfully, a file should be downloaded. I'm using contact form 7 for sending the mail. Is there any ...
5
votes
1answer
530 views

Nginx FastCGI_Cache Vs PHP Caching

I have been doing some experimenting with caching performance using loader.io and have been left with some puzzling results. I was originally on a shared host that used a LAMP stack. Even with ...
-2
votes
1answer
36 views

How to echo css class for a link? [closed]

I am trying to add a css class to this link in a plugin I am using. The plugin has the following code - echo "<a href=\"" . get_permalink() . "\">"; The css class I'd like to add is class="...
0
votes
0answers
23 views

Date/Time Function Worked in February and Doesn't Fully Work Now

In February I wrote code using the Date/Time functions mixed with Meta Queries to show our event post type on this page. What is supposed to happen is that if the event hasn't happened yet, it shows ...
6
votes
1answer
187 views

Images all broken after migration and upgrade

I have upgraded a neglected Wordpress installation the was a few versions off. After the installation and upgrading multiple version, all of my images are now broken which were not before. Whenever ...
0
votes
1answer
40 views

How to review WordPress website php version compatibility?

My host is upgrading php version from 5.4 to 5.6. I cannot see https:// pages nor login wp-admin with the test sites to see issues. I've read somewhere that WordPress recommends php 5.6. BUT, I don't ...