All Questions

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

Wordpress's Rest Api is fetching HTML Code

I am using wordpress rest api to fetch products. But in the rest api, html code is passing too. Snapshot :- https://i.imgur.com/awsnXSc.png I used the following code, so rest api would not fetch the ...
0
votes
0answers
7 views

Query post by custom field repeater date

I want to use $last_date as the value, but the problem is that its not a custom field itself, but the last row of a repeater field. I have the following statement inside the loop: $event_date = ...
0
votes
1answer
22 views

str_replace with the_content is not working

I am trying to replace the a URL of the content with php. i tried the code mentioned below but it didn't work. is there any way to achieve this with php only? function replace_text_wps($text){ $...
0
votes
0answers
6 views

Woocommerce Links on Products Field [closed]

It's possible to have a plugin or funcions.php code that could disable links on product description? I only want to disable links on product description. Thank you
0
votes
0answers
11 views

ssl on wordpress docker image [closed]

When using https links for siteurl and home my docker wordpress stops responding (getting connection refused errors). Its a known issue (https://github.com/docker-library/wordpress/issues/46) and the ...
0
votes
0answers
25 views

Error in “class-wp-hook.php”

I got this error, can someone help me with how to resolve it? Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_schedule_https_detection' not found or invalid ...
0
votes
0answers
11 views

Yoast Schema Person ID and ACF issue [closed]

I am making a function that change the author of a post with a User custom field from ACF and I need the the Schema ID to change as well. add_filter( 'wpseo_schema_person', 'example_change_person' ); ...
0
votes
0answers
13 views

Wordpress Custom Cart [closed]

hello guys i have a created a wordpress site and i am using rest api to display the products n categories in my app in that i have created a custom cart php file where i am getting the productid n ...
0
votes
0answers
10 views

Pagination on taxonomy template not working after rewriting slugs

My pagination is not working on my taxonomy(sub-category) page. It keeps on loading my archive template. This happened after I applied function codes that re-write's url and producing all parent and ...
0
votes
0answers
12 views

Text not rendering on iOS

Here is the site in question. If you are on iOS then scroll down until you see a "telephone" section, there won't be a number underneath. This doesn't happen on computer. I can click on it ...
0
votes
0answers
9 views

WooCommerce doesn't display product-categories [closed]

At the moment I'm working on two wordpress websites which are owned by a friend of mine. Both of those websites use woocommerce as a shop. Both websites display the same content and products. The only ...
0
votes
0answers
22 views

Reading URL Parameters

The following URL call, is redirected and processed by the 404.php page, indented to capture the s parameter. https://www.example.com/doc/?s=par For some reason, while try to processing the s ...
0
votes
0answers
11 views

Unable to hit hook with form submit build with “wp_ajax_{$action}”

I'm all I'm currently trying to build a hook using do_action( "wp_ajax_{$action}" ) on a Form submit. I built the following form. <div class="layout-gutter bg-grey-lightest p-4"...
2
votes
1answer
19 views

How does the Gutenberg mobile/tablet/desktop preview work with media queries?

I am building a block which has different layouts for mobile and desktop. As far as I understand CSS media queries, they work when the viewport is resized. The preview feature in Gutenberg doesn't ...
0
votes
0answers
21 views

How to take user to a specific page through a quiz on wordpress

I need to take the customer to a specific page based on the options he selects when he takes a quiz. The pages are pre-made, I only need to redirect the quiz results button to a specific different ...
0
votes
0answers
7 views

Filter taxonomy terms by custom ACF field in admin area

How do I add a custom filter to a taxonomy in the admin view (/edit-tags.php), and how do I use a ACF field as what to filter by? I know that you can add a filter to the post list view with the hook/...
0
votes
0answers
9 views

Filter taxonomy archive by a different taxonomy's terms

I have TAXONOMY A and TAXONOMY B (used with Pages and 2 custom post types). I need the taxonomy.php template used by TAX A to filter by the terms of TAX B. What's worse, I need to be able to use an ...
0
votes
0answers
8 views

What do I add to specificy another category for a custom header?

This is current code, I'd like one more along the lines of elseif ( is_category('new-header-cat') || is_single() && in_category('new-header-cat') ) : <?php else: ?> <div class="...
0
votes
0answers
8 views

ACF in post are not initiated after wp_inser_post but only after POST UPDATE in admin

I am creating a post with wp_inser_post. Each post starts with a serie of EMPTY ACF fields which should be displayed in any case but the ACF set is not displayed.. any hint on how to do this?
1
vote
0answers
38 views

DROP TABLE with uninstall hook not working

I wanted to explore more options and thats the reason for me building my first WP Plugin. I tryed to follow the coding standards, but I am struggeling hard right now. I am trying to drop my created ...
0
votes
0answers
7 views

Sharing my index page shows my aws ip, not my domain

When someone clicks to 'share' my website https://kostasgogas.com from the browser menu on Android mobile (chrome) it doesn't share the domain but my aws server ip. How do I fix that?
0
votes
0answers
7 views

How to set a limit of a taxonomy term

I am seeking to allow an admin being able to set a varying limit of users who can be added to each user taxonomy term. The user taxonomy term is selected when adding a new user from the user edit page ...
0
votes
0answers
6 views

divide the editor text which have html attributes on every 500 th character length for creating text slider

I have to create the text slider , but that text have html attributes also,so supposed i have 1000 char length of text including html attribute and if i am dividing the text on every 500 character the ...
0
votes
0answers
11 views

Checking For a Specific Parent Category from Subcategory Page

I want to write some code that checks to see the current category, and then checks to see if it falls under 3 potential parent categories. So if I had a setup like this: Market --food ---chocolate --...
0
votes
0answers
15 views

How to display taxonomy terms in a dropdown on a user edit page

team. I used a snippet from online to create a user taxonomy that displays the list of the taxonomy terms as a checkbox format. However, I want to display the terms in a dropdown style and must be ...
0
votes
0answers
8 views

Access to n articles on a blog (paywall but not subscription) [closed]

do you know or used any plugin that I can use to sell access to n articles on a blog? What my client wants is to have articles on his blog behind a paywall, but not in a way that user needs to have ...
0
votes
0answers
9 views

Cookie problem with mixed domain and subdomains of a multisite installation

I'm struggling with cookie configuration in wp-config.php when having a multisite hosted on a domain, and sites on others domains, and some in sub domains of other.. like this toto.com fr.toto.com ...
0
votes
0answers
17 views

When is the wp-settings-[time] cookie generated?

I created a custom plugin for login and registration forms. When I log in for a new user, 4 cookies are set : PHPSESSID, wordpress_test_cookie, wordpress_logged_in_, and 2 wordpress_sec_ . But I don't ...
0
votes
0answers
8 views

How can I display a category page with future sub categories?

In a recent project I had to build a custom category page. On this parent category, I display sub categories.(just thumbnail and title) Some of these subcategories'posts will be published in future. ...
0
votes
0answers
8 views

How do I create auto open and close alert push notification on WordPress site?

I am developing auto alert notifications on WordPress loop posts. I am looping posts using while loop and displaying on alert at time intervals. Now I don't know what do I do in order for me to loop ...
0
votes
0answers
24 views

Problem with wp_head and wp_footer in React Theme [closed]

I'm building a theme with React. I have used npx create-react-wptheme. In index.php I have added wp_head(); and wp_footer();. But wp_head() and wp_footer() do not work as intended because it is a ...
0
votes
0answers
6 views

Query post by one taxonomy and sort by another

I am getting the posts by a custom taxonomy called "wall_of_fame". This gets me all the posts that match "Yes" in this custom taxonomy. $query_args = array( 'post_type' => '...
0
votes
0answers
6 views

Wp-rocket indexing single page as home page>>>Why? [closed]

I am having issue with WP-rocket plugin if activated it will index and single page and set as home page? why? how i can resolve this issue?
0
votes
0answers
10 views

Logging syndicated feed activity

I use the FeedWordPress plugin to publish syndicated feeds to related categories. I'm wondering if there is a way to create a log of feed activity. I would like, at the least, a report of all posts ...
0
votes
0answers
11 views

change woocommerce language [closed]

I want to change the language of woocommerce language. like add to cart. my cart and all the other things. i use a lot of plugins like gtranslate. loco translate and wpml but not get any result. ...
0
votes
0answers
10 views

Pricing conditions in WooCommerce [closed]

I want the price of a product to be fixed until a user select a weight and than the price will be calculated by the option he chose. See image for example Basically sell product by quantity or weight ...
0
votes
0answers
14 views

Including dependencies using @wordpress/dependency-extraction-webpack-plugin

I would like to add include additional script handles to the dependencies in assets.php using @wordpress/dependency-extraction-webpack-plugin. An example for this would be a script that extends ...
0
votes
0answers
8 views

User Post Gallery WordPress Plugin [closed]

Is it possible to let users view only their posts via User Post Gallery plugin (UPG) ? I have a website that let users upload images on the website and the plugin creates a page where all users can ...
0
votes
0answers
10 views

Capability for showing comments page in admin

I have created a new user role "advertiser" and added some capabilities. Advertiser has access to admin comments page /wp-admin/edit-comments.php and I need to know, which capability set to ...
0
votes
0answers
8 views

Restrict block patterns and template for page template

I'm facing two problems with Gutemberg to be able to use it correctly, maybe some of you have an idea how to solve them ? I know how to create a custom template for all pages : $page_post_type = ...
0
votes
0answers
16 views

Show custom field content if it exists, and show different if not in woocommerce category (wordpress ) [closed]

I want show woocommerce category custom field content if it exist, and show something different if not. I fount this code and it works for posts. How can I change it to work for woocommerce categories?...
0
votes
0answers
7 views

How to add an archive page to WordPress menus (nav_menu)?

Isn't there any way to add relative link like archive page (eg "host/fruits/") of a custom post type I added? (Just as it works "host/fruits/apple/").
0
votes
0answers
17 views

Best theme/boiler plate for WordPress theme development in 2021? [closed]

I think I'm having an existential crisis. Six years ago, I began building WordPress websites using a pre-built theme, and I would just modify the child CSS, page builder, etc to make it look like my ...
0
votes
0answers
11 views

Duplicating live theme for a development theme to preview

I normally develop on Shopify. It allows me to duplicate the live theme and then develop in it - then preview that for approvals to add into the live theme. It's been a few years since developing in ...
0
votes
1answer
27 views

How can I style future post?

I'm showing published and future posts on a category page. I need to make future posts unclickable and add a special class to them in order to add a gray overlay, meaning the post is upcoming.. trying ...
0
votes
0answers
11 views

Include User ID in iFrame URL

I seem to have hit a roadblock trying to figure out how to append the user ID to an embedded iFrame url address. I am using a third party app that tracks unique users (and invoices me accordingly). ...
0
votes
0answers
8 views

Strings are not preserved when transforming a shortcode to a Block

In the way to provide a Block to my shortcode plugin, I'm trying to produce the code allowing to transform my shortcode to the Block when the plugin user activates the 'Convert to Block' feature to ...
0
votes
2answers
58 views
+100

Using a custom shortcode from within the template of a shortcode plugin

I've written a custom plugin, ta-intentclicks which is used as a shortcode: [ta-intentclicks count="3" category="SEC-EDR"...] Within this shortcode I'd like to use another ...
0
votes
1answer
15 views

How to check if a post meta key/value pair already exists for a specific post

I want to know if for a given post ID $post_id, there is a metadata key and value pair stored that matches a given key $meta_key and value $meta_value pair. I am not looking for ANY post that matches ...
0
votes
0answers
9 views

Add post meta to the search without plugins

Any way to add any post_meta to the search, without the use of plugins? I try to not add plugins just for one thing. So I'd like to do it without plugins. Is there a way to do so?

15 30 50 per page