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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

How to display terms from two taxonomies in one php code?

Two taxonomies were added to posts : volume : in which admin enter the number of the journal volume for each post issue : where admin enter the number of the issue under which the post is published ...
0
votes
0answers
8 views

Display the video of a post_format Video

I've a post with post_format = video, in which the content are a video and a text (in the default editor). I need to display the video and the text separately. How can do it? For now, I've this code: ...
0
votes
0answers
11 views

How to get the last term from taxonomy?

working on a scholar journal in which publisher add issues to the "issue" taxonomy assigned with articles. i need to put a button (Current Issue) so when visitor clicks on it a page of posts assigned ...
0
votes
0answers
16 views

How to call post title and post summary to other part of site?

My blog is installed at /posts of my site. It's not a mistake; I wanted to be like that. But now my homepage looks somewhat empty. Here I want to call the title of my blog to my homepage, with a ...
0
votes
0answers
7 views

Custom Taxonomy Link Text Echo Name Not Slug

I'm a little lost about where I can place a simple php echo within a loop. I have a "program" taxonomy where each program is echoed onto buttons. Right now I'm only echoing the slugs for the link ...
1
vote
1answer
11 views

Adding regex filter to feedwordpress

I'm trying to write a plugin for Feedwordpress that filters html from the incoming feeds. So far I have managed to hook it to the right place, but the function completely wipes all content (and it ...
1
vote
2answers
18 views

Get date numerical and separate?

I need to work with date function but I want to get day and month numerical and separate and pass it to a function. For example, I want work for this function. function(day,month) How can I ...
-3
votes
0answers
12 views

nonhuman administration [on hold]

Am searching for a plugins that help me to relate admin approval by a poll question answer (yes/no) to approve or disapprove a post of a member. I need the admin approval on posts automated.
0
votes
1answer
22 views

how to run a php code in widget?

I have a code to get all taxonomies and terms for a single post: $object_terms = wp_get_object_terms($post->ID, 'staff', array('fields' => 'all')); if ($object_terms) { echo '<p>' . ...
0
votes
1answer
25 views

How to add new css class

I want to change one particular element. .stats-top .stats-number{ visibility: hidden; } There is one counter with 3 rows. I want the values from 2 rows not to be visible. When I try to add ...
0
votes
0answers
10 views

problem with category menu, it doesn't want to show link

I have created a category menu but when it displays in front page it shows just text without link. thats my code: $menuname1 = $lblg_themename1 . 'categorie Menu'; $bpmenulocation1 = 'secondary'; // ...
-2
votes
0answers
10 views

I need linkedin connection email addresss [on hold]

I need linked in connections email address from php API, how can i get email address from linked in , if it possible can you provide me some details about code, i tried but LinkedIn API say that your ...
0
votes
0answers
19 views

Problem in sending data to server

I want to have a poll system in my new website. So i use the instructions here: W3Schools! with a bit changes. Now i have a hidden textbox:<input type="hidden" name="post_id" ...
0
votes
1answer
14 views

Find trigger behind occasional php undefined error

Trying to track down an error that's popping up in our php logs -- PHP Fatal error: Call to undefined function get_template_part() in ...index.php It shows up 2-4 times a day (while index.php ...
0
votes
0answers
16 views

Getting the ID of a category from a slug so I can search posts using ID

I am attempting to get the ID of a category by trying to search by the slug. I have tried a number of entries from this site and online but havent been able to return the ID of the slug. The slug is ...
-1
votes
0answers
18 views

need a good code for open and close tag wordpress editor

hi i need a good code for open and close tag wordpress editor 1.The button on first click shoud open and on second click have to close </b> tag 2.Add active class ! 3.How to ...
0
votes
0answers
41 views

Saving Post redirects to 404 page when php $_GET variable in post body

I am having a very annoying issue where certain posts redirect to 404 page when trying to save or publish a post. It only happens to a few posts and did not happen prior to the last few WP updates. I ...
0
votes
1answer
26 views

How to protect own PHP code from Wordpress updates

I have written several own shortcode scripts which I place in the shortcodes.php file. My Wordpress installation is set to update to new Wordpress versions automatically, which is a good thing. But ...
0
votes
1answer
10 views

resizes images on the fly

I'm looking for a plugin that resizes images on the fly that I can call via php. I have searched the wordpress plugins for something that does this and wasn't able to find anything that was up to date ...
0
votes
0answers
19 views

Cannot Enqueue JS Script in Wordpress Admin

I'm running through a tutorial to add some ajax functionality to the admin area of WordPress and have hit a road block. I've been trying for a couple of hours now and as far as I'm aware, the below ...
0
votes
0answers
17 views

Wordpress admin menu pages not receiving passed info

I have a Wordpress menu page (A) and a wordpress submenu page (B). I want to pass data from A to B. A has a list of items and I want B to show the details of each item, by passing the item id to it. ...
0
votes
0answers
9 views

502 Bad Gateway When Supplying Header Content-Length To Try To Force Download

I am trying to force the browser to download an mp3 when the user visits this site. The issue I am running into is if i set the Content-Length header the page throws a 502 Bad Gateway error, and if I ...
0
votes
1answer
19 views

Manually Create PHP Page For A Redirect

I am new to wordpress and working on something for a friend, I have FTP access, and am trying to upload a php file, that checks the platform and redirects the user either to the iTunes store if they ...
0
votes
0answers
11 views

When are static class variables shared? [migrated]

My understanding of PHP static class variables in a Wordpress environment is that, if 2 or more objects of the same class are instantiated within the same http request, then their class static ...
0
votes
0answers
9 views

customizing wordpress theme slider with switch statement

i am working on an assignment for wordpress , i need help in following matter, im using wordpress today news theme, the link of my current work ca.unitysofts.com in upper three slider , while ...
0
votes
0answers
17 views

how to retrieve woocommerce product details based on their category_id using mysql -php

I have to retrieve the product details such as image title,description,image link and price from woocommerce table. I've retrieved the categories with this Query, $result = mysql_query("SELECT ...
0
votes
2answers
15 views

How to pass parameter that ends up being part of a class name with wordpress shortcode

This is the resulting html I want to produce with a shortcode - when editing page content in WordPress: <div class="shadow-wrapper half-shadow im-centered"> <div class="box-shadow ...
1
vote
1answer
19 views

body_class filter - Is there a better way to write this code?

I would like to add a body class depending on what sidebars are active, and a body class if my before-header widget area is active. I have got it to work, but I would just like to know if there is a ...
0
votes
0answers
14 views

Changing time format beyond normal customization [migrated]

We all know we can customize the time format for Wordpress using basic customizations as outlined here: https://codex.wordpress.org/Formatting_Date_and_Time But, in order to match the styleguide a ...
0
votes
1answer
12 views

Things that saved lose when logout

i been working on theme for my portfolio on my host and domain name http://alyelgarhy.com/ and things i saved when login changed when logout for example i change the tagline to senior web designer ...
0
votes
0answers
24 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
21 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
23 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( ...
-1
votes
0answers
15 views

My lightbox is not showing up [closed]

My lightbox is not showing up, I'm usinglightbox plus, i have already tried using class=LBPmodal, not showing. when i use rel="lightbox[]", it shows the box but it keeps spinning what i wanted to ...
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
19 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
17 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
22 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
17 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
56 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?

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
20 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
30 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 ...