All Questions

Filter by
Sorted by
Tagged with
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
31 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
61 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?
0
votes
2answers
25 views

Including code from other themes in child themes

I'm about to build a new site based on a theme close to what I'm looking for. I understand the concepts around child theming & have read the caveats about overriding php or css files like the one ...
0
votes
0answers
4 views

Change add to cart button to contact us - WooCommerce [closed]

I have made an webshop using woocommerce for a client. But now the client wants to stop selling the products via the webshop but instead wants people to contact him. So we still want to use ...
0
votes
1answer
12 views

How i remove specific script from header?

I need to remove a specific line from the header when opening the site. How do I do this using a filter? <script src="url" data-pn-plugin-url="www.site.com/folder" data-pn-wp-...
0
votes
0answers
5 views

mobile navigation menu links are not opening anything after click in WordPress [closed]

mobile navigation menu links are not opening anything after click in WordPress
0
votes
1answer
12 views

Display post count for a specific month

I am trying to display post count for a specific month, But something is wrong with my query because count is wrong. here I want to get post count for Aprel month. Can anyone help me please ? Thanks ...
0
votes
0answers
8 views

Related Video Post by Custom Taxonomy “ Actor”

This my Related Video Post Template by categories. wp_get_post_categories( $post->ID ), 'numberposts' => xbox_get_field_value( 'wpst-options', 'related-videos-...
0
votes
0answers
19 views

Getting an error when my plugin is updated, but the files update correctly

I have a plugin that I am using GitHub to manage my updates through the GitHub Releases feature. Since this is a private plugin I can't put in up in the Wordpress Plugin Directory. The plugin ...
0
votes
1answer
19 views

remove_action: how to access to a method in an child class?

I've this in my main plugin file: $main_admin_class = new MainAdminClass(); $main_admin_class->init(); MainAdminClass has this code: class MainAdminClass { public function init() { $...
0
votes
0answers
18 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function

So I'm learning modern WordPress Development and I'm using classes to organise code etc. I'm having a problem where I'm getting the message: Warning: call_user_func_array() expects parameter 1 to be a ...
0
votes
0answers
10 views

Prioritize search result to show matching exact result

Suppose I search "TA" on wordpress query, the results show the posts with words containing "TA" first, like sTAnd, I want to display exact word "TA" first then words ...
1
vote
1answer
13 views

Add meta noindex to post if it has a specific taxonomy

How can I add the following line to the current post if the product_type = 'enviso_group_ticket'? <meta name=”robots” content=”noindex,nofollow”/> product_type is a default taxonomy of the ...
0
votes
1answer
18 views

How to generate block ID for use in post_content JSON data

How does wordpress generate the block ID pointed out in the screen shot below?
0
votes
0answers
11 views

FIXED - Jquery - slidetoggle function - Uncaught ReferenceError: toggleAndChangeText is not defined [closed]

I'm trying to achieve a simple jquery slidetoggle that shows/hides a div whenever a link is clicked. Now, I've found a working example as shown in the link below, but when I implement it, I get this ...
0
votes
1answer
11 views

How do i get the link to a block?

It appears that the latest gutenberg editor supports direct links to blocks added to a post as mentioned here. How do I get the block link? I need to extract it programmatically but it's not saved in ...
0
votes
0answers
5 views

How to force display of subcategories in an archive file on custom urls

I implemented custom urls in my cpt and custom taxonomy. My url in single page this "mysite.com/custom-post-type-name/category/subcategory/single-post-name/". I would like to show in url &...
1
vote
1answer
12 views

How to show CPTs in term archive

I attached default taxonomy "category" to a "story" custom post type, when I register it: 'show_in_rest' => true, 'show_in_feed' => true, 'taxonomies' => ['...
0
votes
0answers
15 views

Sending emails to different addresses using contact form 7 [closed]

I have set it up that the email from contact form is sent to a different recipient based on a drop-down menu. However i am going to need to use many different emails and based on multiple different ...
0
votes
1answer
14 views

`wp_delete_post` returns NULL

I am trying to delete a lot of WordPress posts programmatically using wp_delete_post, but not all posts are deleted successfully. In some cases I get NULL as a return value for wp_delete_post($row->...
-1
votes
0answers
11 views

How can I make a dynamic website (rip.ie) with WordPress? [closed]

As I am a novice in the web development field, I wanted to clarify some questions running in my head. I want to make a funeral website (rip.ie) with dynamic features. Dynamic features can be like ...
0
votes
1answer
22 views

Custome fields not displayed

I am unable to see the custom fields I have added in the website. I have done the following: I have installed Custom Post Type and Advanced Custom Fields plugins. Using them I created a custom post ...
0
votes
0answers
15 views

WordPress / Custom ACF tag in WordPress RSS2 Feed

I have a ACF checkbox field set up ('kiemelt_cikk). I'm trying to add a custom tag in the WordPress RSS feed, that appears only, if the field is ticked. The issue is that while the tag gets added, it ...
0
votes
0answers
5 views

FlexSlider is not working on custom taxonomy page

I'm trying to create a custom taxonomy page where woocommece products load through jQuery Ajax after 30 to 40 seconds. Due to which flexslider is not working on products. Any Solution???
0
votes
1answer
12 views

Is there a plugin for Wordpress for creating 'Accounts' where all users who belong to that Account can only see Account data? [closed]

Is there a plugin for something where I can group users into an 'Account' and then one particular Account is restricted to seeing only content targeted to that group (therefore a user would need to be ...
0
votes
0answers
13 views

WordPress dont show up videos at IOS devices

Attached videos don’t show up at IOS devices. It will show just download link like this: https://prnt.sc/11acyca At destkop and android phones, video will show just fine, but at ios it will like like ...
0
votes
0answers
10 views

woo commerce change the word shipping to delivery (Gutenberg woo commerce block) [closed]

Hi every one let me try to explain this. PLEASE NOTE: i use the woo commerce block plugin (for the cart and checkout pages to replace the original shortcode) i want to change my instances where the ...
-1
votes
0answers
18 views

I am trying to replace DROPDOWN SEARCH FIELD with KEYWORD SEARCH FIELD. My dropdown Search by City is not effective due to huge amount of cities [closed]

I need to replace dropdown search field "Search by City" with keyword search field "Type City". Dropdown search is not effective due to over 30 cities. Keyword search will be much ...
2
votes
0answers
20 views

How to change the admin/password when using the E2E Test Utils for Gutenberg

I'm trying to set up a test suite for our Gutenberg blocks plugin using the e2e-test-utils. Our environment is a multi-site WP install and I pass the WP_BASE_URL, WP_USERNAME and WP_PASSWORD as ...
1
vote
0answers
21 views

Add custom post type as submenu

I have a custom post type called 'Movies' that I want to add under WooCommerce menu after "Extensions" as you can see below: The WooCommerce page URL is /wp-admin/admin.php?page=wc-admin I ...
0
votes
0answers
12 views

Retrieve some post which match a specific taxonomy and print their url and some relative taxonomy/field in a file?

as specified in the title I should create a (php?) file to upload to the server that retrieves the url of the posts that correspond to a certain taxonomy and simply print the url of these (and some ...
0
votes
0answers
12 views

How To Create A Ajax Fornt-end Data like this? [closed]

How To Create A Ajax Front-end Data like this? I Have Some Products I want when the user Click this icon (shape have image and text in them)user see the products info on the right page side and the ...
0
votes
0answers
16 views

How to Fix Crashed Card [closed]

This Center Card Begin Crash When The Site Is Loading Done (Only Random On Firefox) (In Chrome and Opera Begin Fine) I don't Know This is About Css Section Or PHP Crashed: Orginal:
0
votes
1answer
10 views

How do I populate custom field with current user role in Woocommerce [closed]

I am trying to populate a custom field called Customer Type in checkout with the current user role. I tried the below in my functions.php of my child theme and thought it would work but it does ...
0
votes
0answers
14 views

How To Make This Section Of Menu-Bar Be The Left Of the Logo? [closed]

I Have A Big Problem I Wanna Only Move The En[Flag] Section on the Left Of Logo P.S: I Don't like Use "position: absolute;" and Left or Right Moving This Gona Crash My Menu And Flexible ...
0
votes
0answers
17 views

CPT requires manage_options and edit_posts for some reason

I made a CPT called sponsor. I set map_meta_cap to true and capability_type to sponsor. I created a custom role that has edit_sponsors, as well as all the other stems (delete, publish, etc., each with ...
0
votes
1answer
23 views

Contact form 7 input value validation

I am trying to solve this problem in contact form 7, I have a readonly input field where the value changes according to the sum of other fields. I would like to prevent the submission of the form if ...
0
votes
0answers
10 views

Get dropdown child categories from parent category of custom post type

Finally i cant get subcategories from a custom post type category and everything works fine. The problem is when i want get the same but with a dropdown for responsive. Is possible? i need hide empty ...
1
vote
0answers
12 views

Error defining a gutenberg block in a theme

I've previously (succesfully) made gutenberg block in a plugin, and am now doing so for a theme. However, I'm getting daft errors. I've created a block using npx @wordpress/create-block foldlayout ...
0
votes
0answers
8 views

Change Custom Post Type Permalink Structure [duplicate]

I want to change Custom Post Type Permalink slug order: From: example.com/cpt-slug/post-name To: example.com/post-name/cpt-slug Does this possible?
0
votes
0answers
11 views

Order By Custom Field, otherwise by Date?

I have two CPT and want to order them with Events first, then Articles. Events should be ordered ASC by wpcf-date_time - the event's date, which is in the future. The Articles should be ordered by ...
0
votes
0answers
26 views

Redirect users from admin pages the optimal solution

On two different sites I use two somewhat different solutions. Are they different in terms of security and performance? Which is better? Are there even better ones? Solution 1. /** Redirect users from ...

15 30 50 per page
1
3 4
5
6 7
2185