All Questions

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

PHP identify duplicate words in a text string against a list of words

I have a list of authors' family names - about 150 names, like: Smith, Jackson, Peters, etc. I also have a long article (string of text), which mentions the family names of three of the 150 authors ...
user avatar
0 votes
0 answers
5 views

What are the disadvantages and advantages uploading files as an attachment vs using Media upload?

Aside from attachments creating additional permalinks, what are the ups and downs of uploading a file e.g. image, audio, etc from a post versus the Media upload i.e. Media > Add new?
user avatar
  • 163
0 votes
0 answers
7 views

Need help creating asynchronous data scraper in WordPress

I need some help on a data scraping script I've been working on. I want to create a script through which content can be extracted from a page. I fetched the page via wp_remote_get() and ...
user avatar
0 votes
0 answers
4 views

How to have certain WordPress settings set by default on a per author basis

I have a WP author who always needs to change various settings when creating a new post: Display author box (post format) Display last updated (post format) Select 'News' category (categories) Select ...
user avatar
0 votes
0 answers
8 views

How to show Specific URL of WordPress on Any one Specific IP only?

Hello Stack Exchange Community, hope you are doing well. I have a WordPress website and I want to show a specific page of WordPress on specific IP only. how I can do this?
user avatar
0 votes
1 answer
8 views

Disable Typed Parameters for JavaScript in PhpStorm?

This question is about the PhpStorm IDE. I know I'm not on Jetbrains, but I could not get any help there, neither in their support forums. As WP is written in PHP, I thought of posting my question ...
user avatar
  • 359
0 votes
0 answers
8 views

Add parameters to Yoast SEO plugin schema in functions.php

I'm curently trying to edit schema for custom post type element on our WordPress website with Sage template. Yoast SEO schema provides only WebPage property while I need to add Article propety as well....
user avatar
0 votes
0 answers
8 views

How to update the weight value in the product data, inside existing woocommerce products without the use of the SAVE/UPDATE button [closed]

What I am trying to achieve here is to update all the weight values inside the products that already exist based on the criteria in the if statement. The if statement below checks if a product has a ...
user avatar
  • 11
0 votes
0 answers
16 views

Gutenberg - useEffect manipulate DOM after block re-renders DOM

Could just be my beginner knowledge of React in general.. but I can't seem to figure this out... So what I was trying to do is run a simple function that adds classes to the "li" which works ...
user avatar
  • 11
0 votes
0 answers
10 views

Possible to limit internal link search to post types with Gutenberg editor?

My site consists of posts and several custom post types, one of which is "articles" and it's for news aggregation. It generates quite a bit of posts per day and an unforeseen consequence is ...
user avatar
  • 101
0 votes
0 answers
12 views

Connect two plugins [closed]

How can I merge two plugins together? For example a date and time booking plugin to a form filling plugin and send the result in one email with one submit button?
user avatar
0 votes
1 answer
11 views

How to set post to draft and not publish if the_content contains certain words?

We need to set posts to draft or to not be created if the_content contains certain words. This is not something needed on current posts, it is needed on users who publish posts going forward. As an ...
user avatar
0 votes
0 answers
7 views

Image mapping with multiple selection [closed]

I would like to do Image mapping in my website but I don't want it navigate to another URL or more details while clicking on each part. instead, I want user be able to select multiple parts and just ...
user avatar
0 votes
0 answers
16 views

How to split AJAX response into two divs

How I could get AJAX response splitted in two separate divs? Situation: I have custom post type (case-studies) filter by custom taxonomy(case study category). On page load I query by exact category. ...
user avatar
0 votes
0 answers
8 views

Change field layout when adding a page

When adding or editing a post, I would like to be able to move some of the fields from the right column to below the main content block. Is this possible with WordPress?
user avatar
  • 101
0 votes
0 answers
9 views

Load extra post content from plugin, after load basic post content

I've created plugin, this plugin add extra content to post when this is load, but is slow. Is there a way to load that extra content after I've loaded the base post content? because otherwise, when ...
user avatar
  • 1
0 votes
0 answers
7 views

remove rel=next on category page (if <link rel="next" URL is showing 404) it need to remove link from header tag

We are using WordPress -version 5.7.2 Theme: Newspaper -version: 11 For SEO: Yoast SEO -Version 16.7 Problem description: to display the category list we have pagination. if I reach the last page from ...
user avatar
0 votes
0 answers
12 views

What might be the reasons of wp-cron not working? [closed]

I recently made a API fetching plugin. It works well on my local environment (setup with Laragon) so I uploaded to my live site. It works well on my live site too. Anyway, I'm working with a developer ...
user avatar
-1 votes
0 answers
25 views

How to avoid, skip or fix "Uncaught Return type of Requests_Cookie_Jar::offsetExists($key)" during phpunit

Phpunit 9.5.21, Ubuntu 22.04, PHP 8.1.2 I can not unit test my plugin locally on Ubuntu anymore because the shipped php version is 8.1, and it fails. in /home/username/dev/wptests/wp/wp-includes/...
user avatar
1 vote
1 answer
24 views

Why does $post_id = $wp_query->get_queried_object_id(); return 0?

The code below returns 0 for pages on the frontend. /** * @uses WP_Query * @uses get_queried_object() * @see get_the_ID() * @return int */ function get_the_post_id() { if (in_the_loop()) { ...
user avatar
  • 163
0 votes
1 answer
13 views

Elementor Pro display featured image on section -> style -> image using shortcode

here is my situation: I am trying to make the image in the section (background) dynamic. I would like to add a shortcode where the background changes based on what the featured image is: As you can ...
user avatar
0 votes
0 answers
30 views

tax_query in pre_get_posts

I'm trying to add a tax_query for the query of a custom post type single page with this code. function wcua_pre_get_posts ($query) { // Also removed this condition if( is_admin() || ! $query-&...
user avatar
0 votes
1 answer
14 views

How to hook to function of woocommerce product export _regular_price?

I need to write function to upgrade standard woocommerce product export function of _regular_price meta field. I have pricelist in 'csv' format where i have 'Currency' column. When pricelist is ...
user avatar
0 votes
0 answers
10 views

Understanding the WPBakery License

I'm new to this particular stack exchange - I think this is on-topic here, but apologies if I've got it wrong. I'm trying to better understand the limitations/extent of WP Bakery licenses (I'm about ...
user avatar
  • 165
0 votes
0 answers
13 views

How to get product information using hooks?

I'm building a plugin that use the hook transition_post_status to get a product when the user change any information but when I get the product information using: $product = wc_get_product($post); ...
user avatar
  • 73
0 votes
0 answers
52 views

Best way to search and replace within serialized database strings?

The frustration of serialized data in WordPress has been around for years... trying to search and replace strings in your database using tools like WP-CLI, MySQL queries, or even plugins like Better ...
user avatar
0 votes
1 answer
12 views

Get the list of post categories

How to get the list of post categories I have this but it returns only one category and the entire list? $categories = get_categories(); foreach($categories as $category) { echo 'term_id) . '">' ...
user avatar
0 votes
0 answers
11 views

Understrap-child conditional js script

Im building a site using understrap-child, as I understand all my custom scripts in understrap-child/src/js/custom-javascript.js are compiled in understrap-child/js/child-theme.js. The problem is that ...
user avatar
1 vote
0 answers
11 views

Core Block Columns Attributes for Innerblocks Template

I am having trouble setting the blockGap or blockSpacing property for my core/columns block which I am using for an Innerblock template. This is my JSON below. Everything is working as expected, ...
user avatar
  • 468
0 votes
0 answers
5 views

Woocommerce checkout page broken when set as a checkout in woocommerce settings

So, I'm creating a checkout page for an eshop and when I installed the woocommerce it create a couple new pages shop,cart,checkout.... I have finished all the other pages and now working on checkout ...
user avatar
0 votes
0 answers
10 views

Subcategory Page URL to Display Only Posts from that Subcategory?

When using the permalink structure /%category%/%postname%/ I am able to see all posts of that category when going to the URL /category/. However, when wanting to only see posts specific to the ...
user avatar
  • 1
0 votes
0 answers
13 views

Select some parts of a photo [closed]

I need to design a web page with a photo of a car. With the possibility of selecting different parts of the car that are damaged for the user. It is called Image Mapping. I can do it with Draw ...
user avatar
0 votes
0 answers
7 views

Woocommerce: Any way to list all products *without* a default attribute/variation selected? [closed]

We're trying to find all products of a specific category which are missing a "Default Form Value" aka, Default Attribute, or Default Variation (all the same thing, i see them called these ...
user avatar
0 votes
1 answer
18 views

Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme

I have two Wordpress sites with theme Dyad 2 https://wordpress.com/theme/dyad-2 I need to upgrade from PHP 7.4 to 8.1, but when I try I got four "Deprecated: Non-static" errors. I managed to ...
user avatar
  • 3
1 vote
1 answer
29 views

Custom plugin not appearing

I am learning how to develop a plugin for wordpress. I am running into some issue. The plugin that I am developing is a custom block. I am able to successfully activate the plugin but when I go to my ...
user avatar
0 votes
0 answers
15 views

How to get custom minimum price in Woocommerce

I am trying to get a custom price range by excluding some of the attributes whose names start with "Deckel" I have spent days to make it work but I could not make it. Can you please help me ...
user avatar
  • 101
0 votes
0 answers
7 views

How to make an API call to a custom post type but filtering by meta value?

Apologies, if I don't explain this in the best way as I'm not experienced with APIs and such (mostly only use no code tools). I have a custom post type called "Advertisers". I want to search ...
user avatar
0 votes
0 answers
10 views

Is it possible to disable font sizes on sub blocks only?

{ "$schema": "https://schemas.wp.org/trunk/theme.json", "settings": { "blocks": { "core/paragraph": { &...
user avatar
  • 978
0 votes
0 answers
8 views

How to group WooCommerce poduct "parts" on a regular product? [closed]

I've been searching for the following, but can't seem to find it anywhere on the internet.. So I hope someone has the right answer. I'm looking for a way to group "product parts" on a ...
user avatar
  • 13
0 votes
0 answers
10 views

check shortcode exist inside elementor [closed]

I am trying to check if there is a shortcode contact form 7 inside a page but that is not working as usual as the page is built with elementor Function has_shortcode I have tried this solution but It ...
user avatar
0 votes
0 answers
9 views

Code highlghter libraries for plugin [closed]

HI everyone i want to build a custom css editor in my plugin settings page. I have enqueued this code to the header. I have built a textarea for the css editor. I want to know if there is any library ...
user avatar
0 votes
0 answers
16 views

Getting the posts list visualised in categories tree

I need to create the static page on wordpress, that will show dynamically loaded tree of blog content in the manner: Content: Category1 Subcategory1 Post1 title Post2 title Subcategory2 Post3 ...
user avatar
0 votes
0 answers
38 views

When should I use add_action('the_post' vs add_action( 'the_content' vs apply_filters( 'the_content'?

Reading through the WordPress codex, it isn't superbly clear to me when I should use add_action('the_post' vs add_action( 'the_content' vs apply_filters( 'the_content'. Are there specific scenarios ...
user avatar
  • 11
0 votes
0 answers
10 views

add_filter get array data before display in custom post_type

I have custom "register_post_type" before display data I want to process some data. I cannot found out how to get to data like add_action('the_post', 'my_function') Problem that I have is ...
user avatar
0 votes
1 answer
21 views

How to automatically load more data when users reaches at the bottom of the page of the wordpress site?

When users scrolls and reaches at the bottom of the page I want to automatically load more data related to it. How to do it in wordpress?
user avatar
0 votes
0 answers
14 views

How to display author details in a custom post type in the wordpress backend?

I was wondering if it's possible to get author details and show them on the edit page of a custom post type in the WordPress backend? I use ACF Pro in this project and added some text fields for the ...
user avatar
1 vote
0 answers
5 views

Undo operation not working in Rich text [Gutenberg]

The Undo (ctrl + z) is not working in Rich Text but it's working in the WordPress blocks. Am I missing some parameter somewhere? It records everything in the history reducers when typing something in ...
user avatar
0 votes
0 answers
15 views

ACF repeater values in get_posts [closed]

i display custom post types that are connected in another custom post type, everything works fine, but now i want to display some data from CPT repeater fields. Not working part starts "if( ...
user avatar
  • 1
0 votes
0 answers
11 views

How to dissallow all wordpress posts in robots.txt?

Well, I have a question. How can I dissallow posts in the robots.txt file? My current robots.txt file: User-agent: Scrapy Allow: / User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php ...
user avatar
  • 1
0 votes
1 answer
21 views

404 page is not the same when using PHP code in functions

Based on a condition I want to show 404 page and I have the following PHP code in functions.php function wpse91900_force_404(string $template): string { global $wp; $current_url = home_url(...
user avatar
  • 177

15 30 50 per page
1
2 3 4 5
2259