All Questions

-1
votes
1answer
17 views

How to share data across Multisite network?

I have a WP Multisite Network of 1 primary domain and 1 subsite, both different domains. Now by default admin user is shared across the sites in the network. Similarly I would like to share a ...
0
votes
0answers
27 views

How do I get fresh post data in post_publish hook?

I'm using the post_publish hook to do some operations in my plugin based on the post's taxonomies. If update a post, calling get_the_category($id) returns the categories for the post version before ...
0
votes
1answer
19 views

Pre get posts where template is not equal to one specified?

I'm trying to not show certain posts in the admin area based on the page template. Here is what I have so far: add_filter( 'parse_query', 'hide_some_posts' ); function hide_some_posts( $query ) { ...
0
votes
2answers
17 views

Re-zipping or extracting theme from wordpress site files

I have all of my source file from my old WP site that I have from backups and a CPanel dump where I was using the Avada theme. I have all the theme files and whatnot, but is there a way I can extract ...
0
votes
1answer
8 views

Dropdown Select Post Filter

I would like to display the posts when I click on an item with the dropdown select Currently, my select is OK, all my terms are displayed and all posts too. I just want to know of it's possible to ...
0
votes
1answer
12 views

Get posts in custom post type categories

I have a custom post type defined like so with taxonomies are standard categories: // Register Custom Post Type function custom_post_type() { $labels = array( 'name' => _x( '...
0
votes
0answers
13 views

problem with caching with swift performance lite wordpress login logout problem

I am using Easy digital download to sell online product . the problem is i have enable Shared Logged in Cache option from swift performance lite setting which result really good for page speed . ...
0
votes
1answer
13 views

HTML tags in bloginfo description

I'm trying to set some <span> tags in the bloginfo description. So I put this in the blog description field: <span class="name">Archive | Navarro Vives</span> <span>is a point ...
0
votes
0answers
6 views

Best way to move some sites from a WP multi-site environment, to another WP multi-site environment

For clarity, we have to WP multi-site environments. We want to move some sites, but not all sites, from 1 to the other. So moving sites from 1 multi-site environment, to another multi-site ...
0
votes
2answers
17 views

Custom post type category not displaying category ID

I'm trying to get the category ID so I can call a loop query on only that category ID. However the following code returns null. Any ideas why? In the admin bar it shows edit category with an ID of 3, ...
0
votes
0answers
7 views

Redirect user after form submit alert message

I need to display a javascript alert after a form submission and then redirect the user to the home. I have this code, but it will always redirect the user to the wp-admin/admin-post.php page. How I ...
1
vote
1answer
12 views

Changed site URL and now my Front Page doesn't display correctly

This wp site is a redesign of an old non wp site. I have made the site on the same server, but in a different directory named /nou until it was ready. everything was fine until I copied the site in ...
0
votes
1answer
16 views

How to apply a custom coupon to a WooCommerce Subscription recurring amount?

I ned to create a custom coupon for use with WooCommerce Subscriptions because for some reason you can either have one on the sign up fee OR you have one on the recurring amount, but I need a coupon ...
0
votes
0answers
9 views

select Multiple file from Media on mobile device

on a front end form I am using media uploader to attach multiple images to a posts. however on mobile device I can not select multiple images from the media. is there a workaround?
0
votes
1answer
35 views

WordPress insert query is not working : Showing no Error

Can`t insert data of form into the table, I have also tried other ways. Below is the code. <?php /* Template Name: The custom email */ ?> <?php get_header(); ?> <?php $sql = "CREATE ...
0
votes
1answer
15 views

Adding .json file as preloader before entering page? [closed]

i have animation with .json extension. I want use it for my wordpress preloader page? Can anyone help me ?
4
votes
3answers
80 views

Plugin stability | Using a plugin VS Developing functionalities yourself

I work at a webdev company where we are experiencing the following problems: The plugin not functioning properly with other plugins that are already installed. Things that don't work the way we ...
0
votes
2answers
25 views

Problem adding sidebar to Underscores theme

I have been struggling with this for hours now, any help appreciated. I am using Underscores theme with one sidebar (sidebar-1, on the left) and Custom Sidebars plugin so that I can have different ...
0
votes
0answers
12 views

Get Password protecting POST data

I added this filter add_filter( 'the_password_form', 'custom_password_form' ); 'custom_password_form' is my function, it creates a form with three input. Now I want to pass the extra inputs (...
-1
votes
0answers
24 views

Remove title bar from post-new.php

i want remove post title bar form admin area, no user can able to add title. user can get option to add only description. kindly help me this. thanks in advance.
-1
votes
1answer
18 views

Trying to create a log in system but getting error “Parse error: syntax error, unexpected 'else' (T_ELSE) ” [closed]

I have directly copied the code from a tutorail video that I have been watching and even got a hold of his code files and directly copied and pasted just to make sure but this error keeps popping up. ...
-1
votes
0answers
15 views

Internet Explorer not displaying website. All other browser okay [closed]

I am not a web developer but just maintain the webpage information and upgrade it when there is upgrade version. this webpage is working fine in all major browser including edge.. but when i use IE11 ...
0
votes
1answer
16 views

How to get INSERT errors from $wpdb?

I have these $wpdb->suppress_errors(false); $wpdb->show_errors (true); $wpdbp = $wpdb->prepare($preparedQuery->query, $preparedQuery->values); $result = $wpdb->...
0
votes
0answers
16 views

Extended Custom Post type get all posts in wp-json

Using johnbillion/extended-cpts I try to figure out how can I have all posts in wp-json response. Till now what I tried did not worked I registered the post as it follows ...
-2
votes
0answers
7 views

Fill svg with thumbnail [closed]

I try to fill an SVG with an image using pattern, like that : <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 370.75 318.57" preserveAspectRatio="xMinYMin meet"> <defs> &...
-2
votes
1answer
18 views

How I can show categories in the Search Results?

Can anyone tell, i am using wordpress and i am daily updates my posts. But i want that google will show like this (https://example.com/category) but google show me (https://example.com/category/post ...
-2
votes
0answers
10 views

Wordpress Customizing Additional CSS - save this CSS in a file in the upload folder dynamically and remove css from head()? [duplicate]

how it works, - Customizer settings are saved by hitting the ‘Save & Publish’ button. - This also saves our custom CSS added in the Additional CSS section. - This custom added CSS is placed in the ...
0
votes
0answers
12 views

How to use LinkedIn socialActions Api for displaying comments on my WordPress website blogs page?

I share my wordpress blogs on linkedin as a post. There are comments on those blogs.How to use LinkedIn socialActions Api step by step for displaying comments from linked on my WordPress website blogs ...
0
votes
1answer
34 views

How do I wrap this?

I have snipped of PHP code I'd like to have wrapped within its php-file with the do_shortcode function. Unfortunatly, I don't have clue how to do this. Several ways I tried end in an error on the page....
0
votes
0answers
27 views

Gutenberg Array push

I'm trying to push to an array some values from a select box, when clicking a button but I get this error. Uncaught TypeError: Cannot read property 'push' of undefined My code for the button is el(...
0
votes
0answers
10 views

Share Login WordPress Multi sites

How do I share logins with WordPress MultiSite? Please don't mark it duplicate cause I have never seen a post with Multi Site. I only see multiple sites. I have 5 multi-sites. I have a main site with ...
0
votes
0answers
28 views

WordPress Thickbox Navigation Issue in Gallery

I am adding an image gallery via wp media uploader. In the frontend, I am trying to show these images in Thickbox pop-up. However, it shows the images in pop-up but when I navigate [next and prev ...
0
votes
0answers
15 views

How to hide 'Submit for Review' button for a specific role in Wordpress?

Currently, I've got 2 roles which are Contributor and Editor, both of these roles are able to submit for review, but I only want Editor has this button and hide it for Contributor.
0
votes
0answers
32 views

How to prevent other metaboxes from moving when inserting your own custom metabox?

This code below is making other fields all move to the side. I was only trying to make the new custom metabox move to the side. function vmo_code_enable_metabox() { $screens = ['post', 'page']; ...
0
votes
0answers
20 views

How to add a remove function?

this is my code. class MP3DLlinksMetabox { private $screen = array( 'post', 'page', ); private $meta_fields = array( array( 'label' => 'Direct ...
-1
votes
0answers
16 views

What is considered ‘the limit’ size of a WP Database?

Please don’t downvote - I am genuinely asking for advice and help and yes I have sought advice from other sources. Thank you for wanting to help. I anticipate that my WP install we get to possibly ...
0
votes
0answers
16 views

Not Found The requested URL /XXX/ was not found on this server

After changing the Permalink from custom to another one in Wordpress, It became unable to load my pages. What do you think I should do? Best,
0
votes
2answers
26 views

How to order posts on each different category?

In wordpress, right now only on my main blog page, I managed to sort all posts with: <?php if ( is_active_sidebar( 'blog-category' ) ) : ?> <?php dynamic_sidebar( 'blog-...
1
vote
2answers
20 views

Add Rewrite Rule to point to a file on the server

I'm trying to add a rewrite rule that will point to a file inside a plugin. This can be added in the plugin, theme or .htaccess file. My current code from inside the theme's function.php looks like: ...
0
votes
0answers
12 views

Not able to get my callback URL to work with my wordpress plugins

I have installed a Wordpress Plugin (Revive old Post). This plugins on my wordpress website to send old post to my twitter account.. I have setup my developer account with twitter.. for this plugin ...
0
votes
1answer
18 views

Cant access my wordpress.org locally

Hi I have created a wordpress.org website with phpmyadmin where it is located locally on my computer. I went to transfer my domain purchased through namecheap.com and I put my recently purchased ...
0
votes
0answers
11 views

moderation after registration form [on hold]

I would like to set up a registration moderation system after a user has registered from a form. If, his registration is approved he will receive an email to create a password. Otherwise, the email ...
0
votes
1answer
14 views

Blogposting Schema & Structured Data without plugin

I would like to add blogposting schema markup so each new post is automatically optimized for rich data. Some code on the web is messy and needs updates per each post, also plugin is not best option ...
0
votes
1answer
19 views

Auto remove tags on certain date

I was wondering how could I automatically remove a tag from a post on a certain date? Let's say I have a tag called "upcoming", I would want functionality where I could type in a date and on that date,...
0
votes
0answers
19 views

WP Bootstrap Nav (not JS, not missing ID)

For clarification: I'm using a bs4 navwalker, and Bootstrap 4. Creating a WP Theme from scratch, so I'm learning, and experimenting. I've spent a few hours reading through a variety of issues ...
1
vote
1answer
20 views

Which field should I edit to make the checkbox marked by default?

I have a php form that I want to change the state of a checkbox so it's filled by default, but there are two fields that may be the right way: 'request_vendor_access' => array( '...
0
votes
0answers
34 views

want to confirm popup with “Yes” and “No” button when user click on add to cart

I am new in Wordpress so need help... I want to show confirm popup with the button "Yes" and "No" when user clicks on Add to Cart. after selecting "Yes" on confirm Popup, add a product to cart. If ...
0
votes
0answers
25 views

Accidentally deleted code in header.php

I accidentally deleted some code in my <head> section which made website header disappear. Later when add <script type="text/javascript"> header is appearing now but, when i try to open my ...
0
votes
0answers
15 views

Javascript scroll eventHandler only working when I'm logged in in Wordpress

Trying to make a plugin in javascript. The code is working fine except the scroll event which only fires when I'm logged in Wordpress. The rest of the code (hopefully all) is working as it should ...
-1
votes
0answers
11 views

Loading multiple sites wordpress instances in external php script

I am trying to fetch the plugins data of all sites hosted on a server using single php script. My script includes following steps: 1.read virtual host and form array using siteurl and documentroot ...

15 30 50 per page