1
vote
0answers
6 views

Plugin activation/deactivation page transitions with page parameters, then vanished

When activating or deactivating WordPress plugin, within a blink of eye some URL parameters just come and vanish, can't even snap them so fast. And then the admin notice appears: Plugin activated. ...
1
vote
0answers
28 views

Bulk lock users without email address?

I'm cleaning-up my database, and for the sake of keeping SPAM down to a minimum I would like lock all of the wordpress user accounts that do not contain an e-mail address. Any ideas how to do this? ...
1
vote
0answers
30 views

Filter to shorten column content on edit-tags.php

I am trying to get the content of columns in the edit-tags.php page. I have been trying to do it, first I tried to get the columns. add_filter( 'manage_posts_columns', 'get_columns'); function ...
1
vote
0answers
55 views

Custom Post Type - Search Feature

So my Custom Post Type (CPT) has multiple taxonomies, the only problem I am having is creating a search form. On the frontend they have 5 options, these are: Area, Beds, Academic Year, Student, ...
1
vote
0answers
20 views

Different template of products for specific category in WooCommerce

I did create taxonomies with category slug, but it's not working. It's fetching archive-product.php only. I also tried this "Make the new template and name it": ...
1
vote
0answers
36 views

Add price to variation dropdown in woocommerce 2.5.x+

Before you say asked and answered... I think this is a very common use case: For customer to know the cost of each variation before/while selecting it. Additional requirements: Use variation ...
1
vote
0answers
27 views

Wordpress won't write in a CIFS drive from himself

I want to connect a virtual SMB drive to a Linux server to let peoples save their files/data in a "cloud". To do this, i'm using wordpress, and now what i have to do is to let the apache User write on ...
1
vote
0answers
35 views

Multisite Ajax serialize return error [object Object]

Working on custom WP theme, i'd like to add some "add_testimony" linked to custom post. Form is real simple, here it is : <!-- Add testimonial --> <div class="col-md-12"> ...
1
vote
0answers
18 views

How to set redirect for Buddypress Group Creation?*​

I have a BuddyPress installation for which I am trying to create a redirect at the end of a group creation process. Right now I have the process simplified down to one step by removing steps 2-4 like ...
1
vote
0answers
66 views

Is it possible to to use custom post type types on a page with the same slug somehow?

That is ancient issue, but I still have no idea how to do that correctly. I want to to use custom post type posts on a page with a slug which is the same to that custom posts type rewrite slug. ...
1
vote
0answers
39 views

Custom post listing page layout of custom post type

What is the best way to customise the standard wordpress custom post listing layout. To be specific, I am trying to add a subheading just below the Lessons / Create New Lesson button but before All ...
1
vote
0answers
28 views

wp_insert_post causing There was an error connecting to the database: Access denied for user 'root'@'localhost' (using password: NO)

I have a multi-step form which I am trying to fix but I am getting the error: Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in ...
1
vote
0answers
18 views

Query with relation and one without relation using multiple taxonomies?

I'm trying to use one query for two queries, one with an and relation and one without without having to do multiple queries and loops, is this possible? <?php $args = array( 'post_type' ...
1
vote
0answers
15 views

Yearly Archive for Categories with dropdown

this is my first post, I already read a lot of threads and tried a few ways but none of them worked. I have a website with two pages, which show the posts of a categorie "news" and the other one shows ...
1
vote
0answers
17 views

Adding target and _blank as it's value to the allowedtags

I know that WordPress uses KSES to parse HTML and strip invalid XHTML so I took control of $allowedtags in my themes functions.php file inside a function then added 'target' keyed to an array which ...
1
vote
0answers
22 views

list archives per post types

I have a custom page template and in that template, I display the posts from the 3 custom post types <?php $args = array('post_type' => 'news1','posts_per_page' => '10'); $news = new ...
1
vote
0answers
12 views

Login/Logout Session Sharing - Multiple Wordpress Installations

I am on Wordpress 4.4.2, I have multiple wordpress installations (Not Multisite) 1st Installation :- www.example.com 2nd installation :- www.example.com/blog/ I have pasted this in my Wp-Config ...
1
vote
0answers
23 views

Loading template parts conditionally in Customizer

Here are my issues: I have layout options in customizer for full width or two columns. For fullwidth sidebar will not be loaded. The problem is if the setting is currently on full width when ...
1
vote
0answers
36 views

How do I determine what is causing a redirect for a given page?

This is probably a face palm question. On Wordpress 4.4. the link http://example.com/blog ...redirects to: http://example.com/category/general ...ie. it's redirecting to archive.php and ...
1
vote
0answers
16 views

ModSecurity && Admin Ajax: Server locking up

My server is throwing this error: ModSecurity: Error reading request body: Software caused connection abort [uri "/wp/wp-admin/admin-ajax.php"] Followed by this error until the server gets ...
1
vote
0answers
14 views

Intersept image upload and generate retina image from source

My goal is to make a retina and non-retina image when user uploads a photo. This is doable like so: add_action('init', function() { // Get the original image sizes and duplicate $thumb_w = ...
1
vote
0answers
19 views

Edit image results in copies of file being created

I am encountering what appears to be a file duplication issue when using the "Edit image" function. In this case specifically I am cropping the image but any edit process should have the same effect. ...
1
vote
0answers
32 views

Prefilled textarea by custom post content by default

I want textarea to be prefilled with some custom content of custom post type. The following code works well when page loads for first time. function add_post_id_origin ( $tag, $unused ) { if ...
1
vote
0answers
22 views

Sync only certain users and roles between multi-site / multi-network

I've a multi-network with this situation: A) a public wordpress site with a forum for customers B) an intranet site accessible only by users enabled I've created some roles such as: ...
1
vote
0answers
16 views

How to limit the number of simultaneous media uploads?

As the title implies, is that even possible? I have tried searching but had no luck. In slow connections, I encounter connection problem with simultaneous uploads with pictures.
1
vote
0answers
12 views

Prevent additional top level categories but allow more children

Is it possible to prevent additional parent categories being added to posts but allow children categories to be added to predefined parent categories? For e.g.; Food & Drink -- Mexican -- ...
1
vote
0answers
27 views

Customize Avatar using user meta

I have a customer where all the users are synchronized through an API every night. This API gives me the profile picture for each user and it is stored as a user meta with meta_key = 'image'. Is ...
1
vote
0answers
30 views

Category base to url in custom post type/taxonomy

I'm building a recipe site that uses custom post types for recipes. So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and ...
1
vote
0answers
21 views

Connect to separate database using $wpdb and authenticate user

Have a couple questions. Just to get everyone up to date: I had created a new file wp-custom-config.php Use define define( 'NEW_HOST', host name); and other details. And add code for DB connect like ...
1
vote
0answers
45 views

Is define('WP_CACHE', true) needed for object caching?

I am just reading the docs at https://codex.wordpress.org/Class_Reference/WP_Object_Cache and am not clear on something... If I install an object cache plugin by adding the drop-in file ...
1
vote
0answers
45 views

What data validation we must use in different contexts?

Recently, my theme got rejected on Themeforest and one of the rejection issue is: Data Validation issues have been found in your theme. All dynamic data must be correctly escaped for the context ...
1
vote
0answers
24 views

WordPress Multisite - Multiple subfolders for blogs

I created a Network in blog.animals.com, the Network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each ...
1
vote
0answers
53 views

Wordpress custom post query with pagination

I know this is a common issue and there are many solutions out there. Fow showing custom post with WP query , I use a a snippet like this <?php $temp = $wp_query; $wp_query = null; ...
1
vote
0answers
14 views

WordPress TinyMCE : Get value of popup button

I'm developing a shortcode plugin, with a main button and sub-menu buttons for each shortcode, I create bootstrap thumbnail shortcode with a popup button for parameters like : Thumbnail Title Insert ...
1
vote
0answers
39 views

Custom Fields for Variations in Product Attribute Table

I have successfully been able to follow Remi's tut on how to add custom fields for variations. I have also been able to add in additional rows for the "additional info" table in the tab. I ...
1
vote
0answers
35 views

Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update

My server is updating to PHP 5.6 next week. I manage about 30 WordPress websites. I looked for a plugin that would check if any of the code throughout the other plugins and theme would break with the ...
1
vote
0answers
21 views

How to use same page template if post status other than 'publish'?

Quick question about relationship between post status and template. If non-logged user tried to access a page(or a post) which status is private or draft (or anything other than publish), how do I ...
1
vote
0answers
93 views

Can't get wp_title filter working in twenty sixteen child theme

I am having difficulty overriding the title set in the admin panel for a custom template page, and outputting a custom <title> tag. The parent theme is WordPress's stock Twentysixteen, which ...
1
vote
0answers
65 views

PHP array to JS array to use in google map

Hi I want to use some data stored in a php array to use it in google map api, to populate multiple locations in a the map. I use the loop to create my php array. <?php while ( ...
1
vote
0answers
15 views

When to use Exceptions vs Error Objects vs just plain false/null

I'm in the process of writing a plugin and I'm trying to gauge when to use different approaches of handling errors. There are three methods I'm considering: Throwing an Exception (custom class) ...
1
vote
0answers
26 views

Where should I start looking if I want to implement my own custom search?

I want to implement a search in WP based on elastic search. Ive been looking around to find the best way to replacethe default search but when googling I mainly get plugins. I tried looking at the ...
1
vote
0answers
23 views

User profile updates password even if not filled (Theme my login) in Firefox?

I'm using Theme My Login plugin. It works fine, besides this case, only in Firefox. Updating user profile change password even if password field has not been filled, resulting in the impossibility to ...
1
vote
0answers
16 views

Add visual editor style only on widgets.php page

I'm attempting to add a visual editor style with the function add_editor_style('visual-editor.css');, but only on the widgets admin' page, and not on post editor screens. I'm using a visual editor ...
1
vote
0answers
35 views

Using Advanced Custom Field for file upload, how do I load the file url

I'm trying to make a link to the file I uploaded with ACF so that it goes right to the pdf viewer from the Read More link, but I am getting an error here is the code <div class="col-md-6"> ...
1
vote
0answers
30 views

What are good approaches to routing some urls to a second WordPress install?

Imagine a LAMP stack Wordpress installation running in the root of example.com, with a permalink structure like /section-1, /section-1/page-1, /section-2, etc. I would like to have custom pages at ...
1
vote
0answers
26 views

How to append element after thumbnail

Hey I just wanted to know how to add an element after the first thumbnail image in my loop. Basically I want an HTML div tag inserted after the first image in my post. Anyone know how to do that in ...
1
vote
0answers
60 views

How to find the hook(s) that make site slow

I am working on a site and it is working fine except one thing that it is very slow. I tried to figure out that which plugin or theme is creating the problem and find out that woocommerce-subscription ...
1
vote
0answers
21 views

Show all data in database table and make it into an interactive table

I have to make a table where my data from my database can be stored and rearranged with every row. The name of every row should be a link to the function mymanual_edit(). Look at the image for ...
1
vote
0answers
16 views

HTML and custom field variable, inside variable

I'm trying to get data from a custom field and then passing that into a variable which is then used to perform a function which is - adding the tweet in the body of the_content(); This code was ...
1
vote
0answers
13 views

Change the main loop Wordpress impact on the server?

I used pre_get_posts to change the loop of my Wordpress site. The idea of this loop is not show posts I define an expiration date, whose dates are added in a custom field ( postexpiry ) . These ...

15 30 50 per page