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

learn more… | top users | synonyms (1)

0
votes
1answer
8 views

Display data on Word Press site posts and pages from mysql table

I am new with word press and I have a table in phpmyadmin which has the data which i want to display in my word press site on different posts and pages. I have searched a lot around and came up with a ...
0
votes
0answers
8 views

How can I add & valide costume registration & edit profile Fields and show value in my profile page?

I already added costume registration & edit profile fields in my theme's template-register.php.I added the following code for costume registration fields: <div class="column sixcol"> ...
0
votes
0answers
17 views

What things should I learn to develop a perfect WordPress theme? [on hold]

I'm new to this tech stuff. I had a little experience with coding. I used to code in Java and C. I've never touched PHP. I had a very little experience with HTML and CSS, probably building basic HTML ...
0
votes
1answer
20 views

Wrap a div around a query and how to bring a post in a category to the top?

First off, this is my code: <?php $args = array( 'tax_query' => array( array( 'taxonomy' => 'post-status', 'field' => 'slug', 'terms' =&...
0
votes
0answers
28 views

Where to place script in while loop

I'm currently working on a grid template for a WordPress Custom Post Type loop. Basically I'm showing a video cover and when the user is clicking the cover a Modal opens with video and more opens. ...
0
votes
2answers
35 views

insert multiple entries in database using a loop issue

Update i have fix the first problem by changing the strectures in sending datas to database, now my problem is that when i select multiple choices and click submit only one of the choices is updated ...
0
votes
2answers
866 views

How make a php script run only with wp-cron

I have a php script that executes a function and creates an xml file with results. I want this script runs only once daily and i'm using wordpress cron to do this. Problem is this script always runs ...
1
vote
1answer
431 views

Upload a json file in php

I'm trying to upload a json file through PHP. This is the code that i have yet. if( isset( $_POST['upload'] )) { $target = "/"; $target = $target . basename( $_FILES['upload']['name']) ; ...
1
vote
1answer
601 views

Multiple options not staying selected after saving

Problems: The save works, but is only storing one of the options in the database after save. Options not showing as selected after save. The select fields: <select id="...
0
votes
1answer
20 views

Div Missing In Custom Loop Query

I'm using a customized php code for my wordpress loop. The code is designed the break the post up to be styled differently via html & css. The code is also designed so that I can add div blocks in ...
-2
votes
0answers
29 views

How to make php code in a wordpress page or post to work?

I'm newbie in wordpress. I have included my php code in a wordpress page using the plugin PHP Code Widget which enables php to work in wordpress page or post. My code is as follow ( <?php ...
0
votes
1answer
16 views

Notepad sticky plugin

I have this following code to give a textarea to a front end user to use it as notes on a page to write things to remember. But this code saves only one sticky note that can be edited whenever the ...
0
votes
0answers
22 views

Trouble Implementing a Custom WordPress Menu with 4 Levels of Submenus Using `wp_get_nav_menu_items()`

I am creating my first WordPress theme for a client by converting an existing website coded in static HTML, CSS, and JavaScript, using the Underscores theme for the "1000 hour head start". I have run ...
0
votes
0answers
11 views

Add image before post title using Advanced Custom Fields?

I'm desperately trying to add icons before post titles using the Advanced Custom Fields plugin. My custom field is called "category_icon". I've tried setting the Return Value to both Image Object and ...
1
vote
2answers
322 views

Remove Woocommerce product link

I'd like to remove the link from the Woocommerce product listings. I don't need the user to see the product detail pages, we are going to use Quick View instead. Anywho, I have been searching and ...
0
votes
0answers
10 views

WP_Nav_Walker extending, need to know count of Sub Menu Items

I have 2 different displays here. 1 for mobile and another for desktop. I need to output different html for both for just 1 menu item (the last 1) in a menu. For example, given the following Menu ...
0
votes
1answer
23 views

Export all post from database to JSON only when the database gets updated

I'm trying to export all the published post of my database to a JSON file, in order to use it in JS. Here is the code: <?php /* Plugin Name: Export to JSON Description: Creates the JSON file that ...
3
votes
1answer
143 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. ...
-2
votes
0answers
17 views

What files do I need to create a blog

I've inherited a Wordpress site from another company and I'm looking to implement a blog, with a list of categories, tags and all that good stuff that comes prebuilt into WP. However, said company has ...
0
votes
0answers
29 views

I want 3 WordPress websites, with the same users able to login to each

I want to install 3 WordPress websites, and I want users to be able to sign up to any of the sites and then access all the other sites with the same login credentials - like Google where you can sign ...
0
votes
1answer
39 views

How to correctly add Javascript to this PHP 'Page Not Found' Page?

I am attempting to add some javascripts to my "Page Not Found' PHP page, but no matter how many different ways that I try to do it, it breaks something. Here is an example page for this code: http://...
-1
votes
0answers
16 views

Change category link. Lead it to a specific page

How can I change a link of any shop category in functions.php? I have 4 shop categories. To one of them I need change its href-link, it should go to specific shop page. How can I approach this?
0
votes
1answer
16 views

Edit Post custom options not working

I have added a custom post page option but it's not working; the output is always empty. I have this debug code in my loop (the code that retrieves the information in frontend): $colorvalue = ...
0
votes
0answers
8 views

How to exclude custom input fields from Wordpress Posts search?

I wrote up a plugin that adds a column to the Posts table in the Wordpress Admin panel. Each row has some input fields that hold some data information. This plugin has a cron that removes the sticky ...
-3
votes
0answers
24 views

how can i make a wp category sidebar with image with multi background color

I want to make something like this: I install SF Taxonomy Thumbnail plugin in wp and use this code: <?php $taxonomy = 'category'; $args = array('with_thumbnail' => true, // true = retrieve ...
0
votes
1answer
24 views

Output only links using wp_nav_menu()

I have been trying to output only links when using the wp_nav_menu(). This is because I have a predefined ul and li tags for the links. This is what I did: <div class="collapse navbar-collapse" ...
-4
votes
0answers
15 views

How to trigger a plugin function automatically

I have a wordpress plugin to share posts automatically on social media. It works well, if am publish post from wordpress dashboard. But not works if am publish a post from openlivewriter desktop ...
-2
votes
1answer
26 views

How to crop featured image in different sizes?

I have a Wordpress theme which require 4 images sizes: small: 960x535 medium: 1380x770 large: 1920x1071 full: 2240x1361 Is there a way to crop the featured image into these sizes so I can use them ...
0
votes
1answer
12 views

ACF Images If/else

<div class="postthumbnail"> <?php $image = wp_get_attachment_image_src(get_field('usercrop'), 'full'); ?> <img class="post-thumbnail img-responsive postpic" src="<?php echo $image[0]...
0
votes
1answer
439 views

How to list users like an archive page 10 users on page and have navigations

How can i list registered users like an archive page? and how can i make a link on user name to point to user profile page? Please see the link http://postimg.org/image/9wkp6kfib/ <?php /* ...
0
votes
0answers
27 views

Own class in while post loop

I've created my own class which I load trough my functions.php For my custom post type, I've created an own archive-{posttype}.php. In my while loop I'm trying to access $obj->functionName(), but ...
0
votes
1answer
24 views

jQuery doesn't work in my php snippet

I have the following snippet to prevent the purchase of products by displaying a text and hiding the "proceed to checkout" button. The text part works great but the jQuery part doesn't i don't know ...
0
votes
0answers
27 views

Loading PHP Variables to HTML Div elements after AJAX process

I'm trying to develop a plugin for a client as per his requests. I'm having a hard time figuring out on how I can pass the values of a PHP Script File after it was called by a javascript ajax file. ...
-1
votes
0answers
25 views

translate text in a plugin incompatible with translation [on hold]

i have installed in my website this plugin: https://wordpress.org/plugins/video-list-manager/ but it's incompatible with translation (the text is included directly in hmtl). now i want translate ...
0
votes
3answers
49 views

How to properly insert data into custom table via plugin

I have a plugin that reads data from an uploaded file and runs queries on the wp database. These inserts are into a table created by my plugin, so they aren't the post type. This is how I got it ...
1
vote
0answers
15 views

How to generate HMAC-SHA1 signature to use with WP REST API and OAuth1

I'm trying to publish a post using WP REST API. I was able to authenticate using OAuth1 using the PAW http client. I was able to publish a post to the site as well (again using PAW). PAW generated ...
0
votes
0answers
13 views

Description of Wordpress Bootstrap? [duplicate]

Is there a high level overview of how Wordpress's core PHP code bootstraps itself? I'm not talking about the frontend Bootstrap framework -- I'm looking for a programmers description of how wordpress ...
-2
votes
0answers
26 views

Override JS using functions.php flle [closed]

Is it possible to write a function in the function.php file that would override the following javascript located in a JS file for a plugin in the plugin in directory so I can put my own values in for ...
0
votes
0answers
12 views

preg_match_all() deletes regex delimiter each time wp_remote_get() is called

When I use wp_remote_get($url) to get data from query.yahooapis I receive a string, I pass that string through preg_match() so I can filter the information I want (In this case the price, the data ...
0
votes
2answers
21 views

Inserting Plugins Into Blank Space of Externally Designed Wordpress Theme

I am currently working on this website which uses a Wordpress theme designed by one Themeforest author. As can be seen via the link and the following screenshot from the same page, the theme's ...
2
votes
2answers
52 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
-4
votes
0answers
19 views

Filter Ajax Dynamic Archives Custom Posts Always not Showing Correct Result

Hy everyones, I'm building filter search using multi select option, when I'm selecting the country and then result of filter search always show all posts Here is my template <div class="row"> ...
-1
votes
0answers
10 views

Fix errors on live site? [closed]

There's a php syntax error and all I see of my site is such error. I can't navigate my way back to the admin dashboard. I don't have a local copy. Any tips? This is all I see: Parse error: syntax ...
0
votes
0answers
19 views

Converting fake php page loop to wordpress loop?

I was handed off a project that was created using backbone.js to be "WordPressified" and I'm having trouble converting the fake page loop in to a standard WP loop. When I first took this project on, ...
-4
votes
0answers
10 views

How to add Bulk values in Woocommerces Attributes

How to add bulk values in woocommerces attribute. I want to add 70 smartphone models in the attribute "Smartphones". Please tell me how can I do this ?
-3
votes
0answers
16 views

how to use download links with CONTACT FORM 7?

I want to allow user to download my PDF only after they filed their email id. On every post there is a different PDF to download. I am saving these download links in custom fields of WordPress ...
0
votes
1answer
56 views

How to publish a post using WP REST API using PHP and OAuth

I have a wordpress site. I am trying to create a php page in the same site - to publish posts in the site using WP REST API, OAuth and PHP. I've installed: WP REST API v2 plugin WP OAuth server ...
0
votes
2answers
185 views

How to get member list based on role by using buddypress?

I am new in buddypress. My problem is: I have create a template for get member list based on role Like: <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page=25&role=...
-1
votes
1answer
646 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
2answers
1k views

You do not have sufficient permissions to access this page while making a plugin

You do not have sufficient permissions to access this page. This is the error i am facing while making my own plugin.Actually, i want to link to another page. Wordpress version is 3.8.1 I made a ...