All Questions

0
votes
0answers
12 views

Something changes URL on admin page

We have 2 projects. https://host/ - first (on Node.js), https://host/modules/ - second (on WP). Before that nginx stays as reverse-proxy. When I'm on page 'modules', everything is good, but when I go ...
0
votes
0answers
7 views

On billing country change in the checkout page, re-total the cart using appropriate currency

I'm not very experienced, digging this for days now, running out of solutions. Please help :) I have a two-languages(=two currencies) website using WPML. Both currencies are allowed on both languages,...
0
votes
0answers
7 views

profile_update hook does not fire from front-end

I'm using BuddyPress to allow users to log in on the Front end. Once logged in, they can click on 'My Account'. On this page they can upload avatars, edit their account information, etc. When I ...
0
votes
1answer
8 views

word press enqueue method not working for style sheet and javascripts

functions.php <?php function addExternalStuff(){ wp_enqueue_style('style',get_template_directory_uri().'/style.css' ); } add_action('wp_enqueue_scripts','addExternalStuff'); ...
-1
votes
1answer
12 views

Adding black borders with rounded edges to video

been trying to get my head around the video shortcode. We are hosting the video localy. I found some css I wanted to try. .video-mask{ width: 350px; border-radius: 10px; overflow: ...
-1
votes
0answers
6 views

What libraries are available to connect a Python web app to communicate with WordPress via the REST API?

I have a python web app, and I would like to connect it to WordPress via the REST API. The app will need to communicate in two directions (i.e. the app will both need to send and receive information ...
0
votes
0answers
18 views

Filter to APPEND nofollow to rel

I am trying append nofollow to add external links. If a link does not have a rel attribute, rel="nofollow" will be added. If a link already has rel="nofollow" nothing will happen, and if a link has ...
0
votes
1answer
10 views

Broken pagination links on WP 4.9.10 blog pages

We noticed a weird issue on our WP 4.9.10 blog pages when going to 1st page. Right now we can go to 2nd or 3rd page by clicking the page numbers but saw that it gives 301 code when going to 1st page ...
0
votes
1answer
15 views

How to add_filter only when content is not empty?

Im trying to add filter but only when the_content is not empty. So I was trying do something like that: <?php $thecontent = get_the_content(); if(!empty($thecontent)) { add_filter('...
0
votes
1answer
6 views

Woocommerce: Display an image on Products from a Specific Category?

Does anyone have code that can be added to functions.php that will allow me to display an image only on products that belong to a specific category? Preferably I'd like it to display over top of the ...
-1
votes
1answer
8 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
19 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
16 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
14 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
4 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
11 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
7 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
8 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
5 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
6 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
10 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
15 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
7 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
30 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? [on hold]

i have animation with .json extension. I want use it for my wordpress preloader page? Can anyone help me ?
2
votes
2answers
47 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
22 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
18 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
16 views

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

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
14 views

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

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
14 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
10 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 [on hold]

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
15 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
10 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
32 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
20 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
9 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
17 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
29 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
19 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
13 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
24 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
1answer
13 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
9 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 ...

15 30 50 per page