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

learn more… | top users | synonyms (1)

-1
votes
3answers
32 views

Wordpress site with embedded menu - gives You don't have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server

I've inherited a website which has a menu structure that is not working. he developer built a site at huge expense but has then left them with a partially working site. It is a WooCommerce site with ...
0
votes
1answer
12 views

How to loop over wp_get_themes() and create an array of themes name

So wp_get_themes() returns an array of objects : Array ( [WpAngular] => WP_Theme Object ( [update] => [theme_root:WP_Theme:private] => /home/love/Web/web/...
1
vote
1answer
13 views

How can I create a list of page titles from custom meta values?

I want to associate pages with other pages by using custom meta values. For one page, I want to associate two other pages, so I create a custom meta value with the key Procedure and the value of the ...
-1
votes
0answers
15 views

Question On Interactivity Help [on hold]

I've come across a roadblock because I'm trying to create something interactive, I don't know much coding skills so I'm using the best I can with plugins. Simply said, I'm trying to do the following: ...
2
votes
2answers
32 views

post expire after x days

I want to create a code snippet for expiration of post after x days from the post published date, I tried with this code but I always displays the true condition, what am I doing wrong? $pfx_date ...
0
votes
0answers
13 views

wordpress wrap every 3 posts in a div after the very first post in a loop [duplicate]

I want to add every 3 posts in my index.php file in a row div but I would like to exclude the first post so that I can style the first post differently. I currently have the loop working for every 3 ...
0
votes
0answers
12 views

WordPress plugin checkbox check help

I am currently trying to learn how to make a fairly simple plugin. However, I am trying to make it a little more complicated and streamline the code as I go. I am currently trying to make an array of ...
0
votes
1answer
18 views

searching for members in wordpress

I have custom fields setup in S2MemberPro, lets say they are these: memberid phone referredby I want to search the custom fields if searching those fields, and if searching the normal fields like ...
0
votes
0answers
14 views

Same Title on two different post type with single custom taxonomy

I have a custom taxonomy "Store" assigned to two post types : default "Post" type and second "Coupons" for all "Post" of ebay : my links is - http://domain.com/store/ebay/ and all "Coupons" of ebay : ...
0
votes
0answers
13 views

Wordpress is adding parameter to links in pagination loaded by ajax

To load posts without refreshing page I use this jQuery function: $.ajaxSetup({cache:false}); $("body").on("click", ".posts-navigation a", function(e){ pageurl = $(this).attr('href'); if(...
0
votes
1answer
21 views

PHP Helper Class to create shortcodes

I created a helper class to extend other classes for shortcodes. When I try to use $this in the add_shortcode() function I'm getting this error: Using $this when not in object context How can I ...
0
votes
0answers
15 views

jquery - output display statement

/** * VARIABLE PRODUCT PRICING TABLE */ function rp_wcdpd_switch_variable_pricing_tables(element_id) { jQuery('.rp_wcdpd_pricing_table_variation').hide(); jQuery(element_id).show(); } if (...
1
vote
2answers
31 views

Overriding WP login credentials

Whenever we login to wpadmin there are two available credentials username or email password I want phone number in place of username so I can login to wpadmin with Phone Number or Email password ...
0
votes
1answer
22 views

pagination on data fetched using SQL query

I am new with php and word press. I have a question that I am using a sql query in my posts to get data from my data base. Now the problem is that I have huge data on my post and I do not have idea ...
0
votes
0answers
6 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
0
votes
0answers
11 views

Styling fetched data in word press posts and pages

I am new with wordpress and php. I have a database in phpmyadmin and I have used Exec-PHP plugin to fetch and I am able to successfully display data from my data base on my word press theme posts and ...
-3
votes
0answers
13 views

How do I fix this Catchable fatal error, that is showing up?

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/virtualexplosion/public_html/wp-content/thesis/skins/tlabs-flatisfy/box.php on line 1236
0
votes
0answers
6 views

Wordpress draft posts list disappeared

In my wordpress admin dashboard draft posts list disappeared. How to solve this problem?
2
votes
1answer
20 views

How to update single value in multi dimensional Post Meta?

There are some values in Post Meta Data stored as a multi dimensional array. I want to update some of their data. Here is the Post Meta value displayed using <?php the_meta(); ?> voter: a:1:{s:...
1
vote
1answer
33 views

How does wp_enqueue_scripts work?

I have a WordPress page for my table tennis club. There is a site with all the current standings and I want to parse a table from it to one of my wordpress pages. I created a dynamic table with php ...
-2
votes
1answer
28 views

Functions.php file in a custom child theme messed up without backup

I just ran into some problem. I'm a beginning Wordpress dev. I don't know much and I have messed up my functions.php file. Here's how it happened: I copied the code from This site. This was supposed ...
0
votes
0answers
36 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
0answers
18 views

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

I already added custom registration & edit profile fields in my theme's template-register.php.I added the following code for costume registration fields: <div class="column sixcol"> ...
1
vote
1answer
20 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 ...
-1
votes
0answers
32 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
42 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 ...
-3
votes
0answers
32 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
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 ...
0
votes
0answers
23 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 ...
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 ...
-2
votes
0answers
18 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
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
30 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 ...
-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
25 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
41 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://...
-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
13 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
25 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 ...
0
votes
0answers
28 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

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" ...
0
votes
0answers
31 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. ...
0
votes
1answer
25 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 ...
-1
votes
0answers
26 views

translate text in a plugin incompatible with translation [closed]

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 ...
1
vote
0answers
16 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 ...