All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

How do I run an action after a featured image has been selected in the Gutenberg editor?

I have found a few tutorials such as a DigitalApps.co and That Dev Girl explaining how to use "wp.hooks.addFilter( 'editor.PostFeaturedImage'"... in order to create/replace the content of the featured ...
0
votes
0answers
13 views

Pass a value returned by a function inside a plugin - Woocommerce PHP

there are more topic on this argouments but I still have this problem. I'm trying to change the total price of my cart in woocommerce, passing a variable from the outside. My class Class nameclass ...
0
votes
0answers
6 views

Wordpress REST API customize 'Access-Control-Allow-Headers'

I am trying to set up a custom header param that can be passed to my Wordpress REST API but for some reason it keeps defaulting only to x-api-key. Following this github issue, in my functions.php I ...
0
votes
1answer
3 views

What happen to the WP Bakery aka Visual Composer after updating to WordPress 5+?

After updating A WordPress site to version 5+ that also uses WPBakery, you end up stuck in the classic mode without the visual editor.
0
votes
2answers
6 views

Loop is crazy - one row displays wrong count of posts

Im having a loop with count to add a clear after 4 items. It is working pretty well but theres one rebell row that will only take 1 post. Code: <section class="bonds-funding"> ...
0
votes
0answers
4 views

edit_form_after_editor hook not work

I'm following a tutorial to create a custom page builder based on bootstrap 4. I have a problem with the page template registration, I've installed the classic editor and I've tryed to make it a ...
0
votes
1answer
8 views

I can not include page to wordpress function add_filter, the_content

Wordpress Function add_filter I want to include extra page, on add_filter How can I correct this ? Thanks in Advance ! function page_content($content) { global $post; if ( is_object( $...
0
votes
0answers
6 views

How to add “er” after particular days of the month in php?

I am working on a html/php code as shown below: <?php if(ICL_LANGUAGE_CODE=='fr'){ ?> /* When the page is in French */ <time datetime="<?php echo esc_attr(date_format($ts, 'H:i d-m-Y'...
0
votes
0answers
7 views

How to run phpunit test for all files which wordpress plugin have

I have phpunit tests for plugin and it`s works only for main plugin file (screenshot 1). But I need test all files from plugin. For example I have file in "includes" folder (screenshot 2). And I ...
0
votes
0answers
16 views

else from is_home() function doesnt work [duplicate]

i want to put on navbar to slider when in homepage,also i want to put top navbar when in other pages.so i encoded this: if ( is_home() ) { echo' <nav class="navbar navbar-expand-md navbar-...
0
votes
0answers
8 views

When a plugin gets updated from the repo, does the “activation” hook fire again?

When you activate a plugin, it goes through the whole activate .. bounce to the next page thing. Does the plugin fire that hook when it is updated, or only during the initial installation?
0
votes
0answers
9 views

wp-cli: Access denied for user (but it's ok if using mysql client)

it's really strange: I can connect using mysql client but not using wp-cli. I copied my WP site 5.2 to a new server (Ubuntu 18.04.2) and the webserver Apache2 serves my WP website correctly. ...
1
vote
1answer
11 views

How to check woocommerce single product tag

I want to check product tag at single product page. For example, when user access single product page if that product tag is "adult" redirect to main page. I found is_product_tag() but this ...
0
votes
0answers
11 views

Loop on table with two custom post types

I need some help here. <tr> <?php // The Query $args = array( 'post_type' => array( 'pratos_dos_dia', 'grelhados_do_dia' ), 'posts_per_page' => 12 ); $the_query = new WP_Query( $...
0
votes
0answers
5 views

LearnPress: Course Overview not displaying Course Features table [on hold]

In the demo site course overview displays course features table like this: but after adding lesson and course the features table does not show up and its something like this:
0
votes
0answers
6 views

Modifying WordPress Navbar

My first question here.:) I need to modify the WordPress Navbar on my website. When I've asked this question previously on another site...I was told that my website is using a custom WordPress ...
0
votes
0answers
7 views

Media library management and plugins

I would like to find a good way to manage media files. The features I'm looking for are: Integrated with the built-it library to extend its functionalities Being able to manage it server-side (e.g. ...
0
votes
0answers
7 views

Make alt text required when setting a featured image

In the EU it will shortly be a requirement for public sector websites to have alt text for uploaded images. My organisation's users are rubbish at adding alt text, however, and I'm trying to find a ...
0
votes
0answers
12 views

Spacing/Layout suddenly not showing up correctly anymore - Elementor Page builder and Phlox theme use

I am building a basic personal website using Wordpress, Elementor Page Builder and Phlox Theme I am not a web designer so only just finding my way around. Today I noticed a new issue with my ...
0
votes
1answer
19 views

get_post_meta and add_post_meta not working

I have a code like below but it returns the false. There is data in $ggowlccpy_transaction_details_capture and the order id is being correctly passed. This is for woocommerce order meta. I don't ...
0
votes
1answer
6 views

wp-cli PHP Notice after moving server behind load balancer

After setting up an Amazon Elastic Load Balancer, where SSL terminates, I was getting Mixed Content errors on the site, until I added the following line to wp-config.php. if (strpos($_SERVER['...
0
votes
2answers
32 views

Make WooCommerce product categories only show images on homepage

I am trying to set up my site so that my WooCommerce product categories only show images on my home page. Currently I have this: <?php function fp_categories() { if( is_front_page() ) { ...
0
votes
0answers
17 views

Show widget on single product page if i has a certain tag

I'm using the Widget logic plug-in https://wordpress.org/plugins/widget-logic/ to show or hide a widget on a single product page if the product has a certain product tag. I use is_product() && ...
0
votes
1answer
14 views

Ajax: load content from post I clicked

Why this load whole page HTML, not selected post content? FUNCTIONS.PHP function my_action_callback() { wp_localize_script('main_js', 'ajax_custom', array( 'ajaxurl' => admin_url('...
0
votes
0answers
11 views

Hiding Posts by Country IP Address

Hi Wordpress Stackexchangers! Looking for a bit of assistance on how I might be able to hide posts on the Wordpress Front Page (and through the archives and search pages) by their country of their IP ...
0
votes
1answer
15 views

Filter Gutenberg Blocks Content

I have a simple terms page made up of heading and paragraph blocks. I'd like to filter the_content before output in order to get the content of any heading blocks and create a menu with links to named ...
0
votes
0answers
10 views

An unexpected error occurred. Wpforms Lite [on hold]

An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. Wpforms Lite
0
votes
0answers
18 views

WP_Query order by amount of matching meta keys

I'm trying to add functionality to a search function working around WP_Query, at the moment everything is working just as intended all I need now is to have the outputted results get order according ...
1
vote
1answer
18 views

Remove post type slug of all post types from permalinks

I know similar questions were asked before, but this is new account and I can't comment there. This code remove post type slug from permalink. But I have a lot of post type. How can use this code for ...
0
votes
2answers
18 views

Redirect user to a custom url after logged in

I'm using "Passwordless Login with OTP / SMS & Email - Facebook Account Kit" for login. I want to redirect user to http://www.domain.com/author/<username>/screen after they log in this is ...
0
votes
0answers
10 views

Hide BBPress create topic on one page

Hi sorry this is really basic question. I was just starting to explore wordpress and bbpress, I have a page with the forum index using the shortcode, when I enter a forum it has all the topics and the ...
0
votes
1answer
10 views

localize_script or rest api

If the data is available in both options, in what use cases should i use the localize script to make data available to my javascript code, and in what cases should i use the rest_api? I have a custom ...
0
votes
1answer
17 views

Can I move a Wordpress installation to an IP (without domain name)?

I have a Wordpress installation in a subfolder of a domain: http://www.example.com/wordpress I want to move it to a hosting space with no domain name: http://123.123.123.123 Will it work? I want ...
0
votes
2answers
20 views

functions.php - inject inline css from file

I would like to read from a .css file and inject it as an inline style in wp_head. it's possible? i've tried this "Add inline css to theme" solution but it doesn't do what I expect because I expect ...
0
votes
0answers
27 views

Wordpress 404 unless there is a space in url

I got a previous question answered and I tried amending the solution, but now the problem is when there is NOT a space in my custom post URL the tag at position /location/ (in domain.com/malta-...
-1
votes
0answers
15 views

WooCommerce Variable Product Price

i am trying so hard to create my product price link below style also with radio button and images option together but not 100% success. BASIC PRICE IS $554.99 Variable Options Fabric (Selectable ...
0
votes
2answers
18 views

Home Page On Scroll Logo changing

I have been trying to get rid of the logo that changes when you scroll down a page, my theme customizer no longer gives this option. Is there any way I can use CSS to stop the menu from changing ...
0
votes
0answers
11 views

Sitemap in blank

I change from all in one seo to Seopress, about 2/3 weeks ago and I still do not have a sitemap, I thought the plugin will generated by itself. Do I need to do something for this to happen? thanks in ...
0
votes
1answer
13 views

How to use different domains subdomains in WP multisite?

In my multisite I would like to use these domains and domains, how do I set it up? site1.com sub1.site1.com site2.org sub2.site2.org
0
votes
0answers
8 views

Import single site into multisite

I am puzzled. I am importing a single site into a WordPress multisite. I have followed all proper steps which are explained on various sites. There are several, but I used these 3: https://code....
-3
votes
0answers
11 views

WordPress dynamic menu create plase [on hold]

<div class="collapse navbar-collapse" id="navbarSupportedContent"> <li class="nav-item dropdown col-sm categ"> <a class="nav-link dropdown-toggle " id="...
-1
votes
2answers
24 views

How to track active installs of my WordPress theme or plugin?

I am aware that WordPress doesn't allow to add third party tracking code for free stuff. I have some set of premium themes and plugins which I am selling directly from my own website. How can I track ...
0
votes
1answer
20 views

Why wordpress is hitting another url

I got a mail from main hosting that your wordpress site is attacking or hitting another website each and everytime it loaded. I have checked all the plugins and code but couldn't find any solution.I ...
0
votes
1answer
22 views

Add JQuery As Code Snippet

I would like to add jquery code snippet for Woocommerce checkout page for a specific product in the cart, but I'm confused on how to adapt the code to wordpress. Any ideas? Here is the code: ...
0
votes
1answer
15 views

HTML Data Validation For Envato

I have scanned my theme by Envato theme check plugin to solve any mistake in my theme, I have found that the all data that print to the user must be escaped so I have done that and everything great ...
0
votes
1answer
26 views

Gutenberg Block - Post Featured Image Filter Hook

I'm wanting to add some functionality to the featured image block in the Gutenberg editor. I've got pretty close: The problem is, I'm unable to select an image, and posts that already had a featured ...
0
votes
1answer
25 views

Issues Updating Post Meta with AJAX (Seems simple but cannot figure it out)

First and foremost - thank you to anyone and everyone who is taking the time to respond. I am a newer developer and I am sure I have a misunderstanding or something simple that I am missing. I have ...
0
votes
0answers
12 views

Gutenberg: Content Width Frontend

I'm working on the front end of my site however I've ran into an issue where I different content widths as a result of content being not wrapped in a div. <div class="content"> <div ...
0
votes
0answers
12 views

Could not insert post into the database - Media

im currently having a database error in my Wordpress Media section. Everytime i upload a file i get a "Could not insert post into the database" error. The site was migrated from one hosting to ...
0
votes
0answers
9 views

Pop-up with informations about variations

I am looking for a plugin or a solution, how to create a pop-up with information about attributes that can be selected in a product card in a woocommerce. After going to the product, click on the box ...

15 30 50 per page