All Questions

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

How do you remove header sitewide from mobile only?

I'm having trouble hiding my header on mobile devices. My wordpress theme does not have an option to hide it, so I was looking at the theme's header.php file if there was anything I could add to it. ...
user avatar
0 votes
0 answers
5 views

Solution for Getwid Button data-filters

I use data-filters for category filtering. The filter works. However, the data-filter is not supported and must be converted as html. However, if new categories are added, the data filter is always ...
user avatar
  • 1
0 votes
0 answers
10 views

How to Implement Search Functionality?

<div class="col-lg-8"> <div class="row"> <?php $search_term = get_search_query(); $term = ...
user avatar
  • 1
0 votes
1 answer
12 views

Assigning a category to a custom post type in Wordpress

I am working with custom posts to create a 'document' custom post type and then trying to assign the category during wp_insert_post, have tried using both post_category and tax_input to no success. I ...
user avatar
0 votes
0 answers
6 views

I have a wordpress woocommerce website, in this website i want short description changes automatically based on the selected variation like amazon? [closed]

Dear All, i have a wordpress woocommerce website, in this site there are products, some are variable and some are simple, i want to change woocommerce short description to change automatically based ...
user avatar
0 votes
0 answers
8 views

website redirects to homepage for all 404 pages, wp-cron and admin-ajax.php

My multisite WP website is redirecting all the 404, wp-cron.php, and admin-ajax.php to the homepage when the user is not logged in. .htaccess rules: RewriteEngine On RewriteRule .* - [E=...
user avatar
  • 145
0 votes
1 answer
21 views

Sort users by meta key value even if meta key not present for all users

Only some users have a specifice meta_key some_metakey associated with their ID. The following args successfully orders users with a specified role by some_metakey but only those with that meta_key. ...
user avatar
0 votes
0 answers
20 views

How can i export and import my plugin option Wordpress

I am trying to export the plugin options that I created. if(!get_option('myplugin_opts') ){ add_option('myplugin_opts'); } and also I want to know how I could import the options to WordPress for my ...
user avatar
0 votes
0 answers
14 views

multisite - unable to connect to network administration

I install wordpress and set my website as multisite to have many sites I certainly make a mistake as I can't access to network administration anymore so I can't add a new site or see themes .... I don'...
user avatar
  • 101
0 votes
0 answers
12 views

How do I include and iframe in a Custom Block?

Given the html block tag I can include and iframe from Google My Maps in my post. I need to create a block where the client can paste the URL from the embed code and the block render the iframe. I ...
user avatar
  • 101
0 votes
0 answers
12 views

Can you disable typography panels for just the paragraph block?

I'm wondering if there is a way to remove the typography and custom color panels from the sidebar for just the paragraph block. I've currently written a function that I've added add_theme_support to ...
user avatar
0 votes
0 answers
13 views

403 forbidden while updating the page [closed]

While I updating the page with more content means above 810 words am getting 403 forbidden error, if the word content is below 810 word count there is no error. I tried using checklist plugin and gave ...
user avatar
0 votes
1 answer
21 views

How to add custom meta to 'pre_get_terms'?

I have a custom taxonomy with custom meta. I have added the custom meta values to columns in the admin list page just fine. But if I search for values that are in these columns nothing is found. I'm ...
user avatar
  • 279
0 votes
1 answer
11 views

Wordpress change wp_nav_menu walker with a custom one

I have a downloaded theme and it where the wp_nav_menu is created it looks something like this: <div class="nv-nav-wrap"> <div role="navigation" class="<?php ...
user avatar
  • 101
1 vote
1 answer
17 views

Allow only the taxonomy creator to edit and delete it

I'm trying to filter so that only the creators of the respective categories can edit them. I created a cat_author meta field and associated it to the taxonomy. In this way, every taxonomy has an ...
user avatar
0 votes
0 answers
10 views

Adding /blog in front of single posts (only)

I would like to add /blog in front of the url for a single post: e.g. website.com/blog/news-article -> single article website.com/blog -> blog archive (showing a list of all blogs etc.) Ive ...
user avatar
0 votes
0 answers
17 views

Why is $_POST empty when saving custom Meta Box?

I'm creating a Meta Box in my custom Plugin where the Administrator can select which users can view a certain post based on their roles. When I select the role and save the meta box content by ...
user avatar
0 votes
0 answers
14 views

Limiting actions only to edit.php page for specific custom post type

Excuse me if something like this has been asked before. So, I'm trying to alter the query which displays the posts of a custom post type, but on the admin side, more precisely, the edit.php page. This ...
user avatar
  • 13
0 votes
0 answers
7 views

WordPress: Export/Import Yoast meta title & description to custom taxonomy

I want to export the Yoast meta title & description from a custom taxonomy with the WP All Export. Unfortunately there is no direct way with the plugin to do that. There is an extra WP All Export ...
user avatar
  • 145
0 votes
0 answers
5 views

Jet Engine extend form action CROCOBLOCK [closed]

Good morning community, I hope everyone is very well and healthy, I come to this community in order to get a consultation to help my problem, it happens that I am using the JET ENGINE complement of ...
user avatar
0 votes
0 answers
12 views

Gutenberg get ACF field data

I'm trying to find solution to check in live an ACF Relation field with JS. The Relation field is a list of students. This is a native field not a Gutenberg block. I tried with wp.data.select('core/...
user avatar
  • 137
0 votes
0 answers
18 views

how do I turn off whatever causes links to be embedded as URL's site title

When I print a url onto my site, it automatically gets wrapped in: <blockquote class="wp-embedded-content" data-secret="tDj3qpdVAi"><a href="https://www.example.com/&...
user avatar
  • 1
0 votes
0 answers
21 views

RSS feed for a custom page template

I would like to know if it is possible to have a custom feed based on a page template and how? This is my custom query: $my_custom_query = new WP_Query( array('cat' => array (4335, 12488), '...
user avatar
  • 299
0 votes
1 answer
17 views

End of blog roll or start of blog roll, _post_link = false / no link

Please help, how do you write this if next_post_link() = false / no link or end of blog roll : do this; else : return; endif;
user avatar
0 votes
2 answers
27 views

Forcing page to top of the list when using get_pages

I am using get_pages to pull the children pages from a parent and listing them in a similar way to the standard WP loop for pages. This works well using the code referenced below - however.. what I ...
user avatar
  • 101
0 votes
0 answers
10 views

Customize the editor

I found this code here. these addresses, where can I find out? (tinymce,quicktags,media_buttons) I would also like to remove the textareat and metoboxes so that only the highlighted image remains. (...
user avatar
  • 1
0 votes
0 answers
19 views

Display full WordPress post under search form using AJAX

Hi I am currently creating a site that shows interactions between different pharmaceutical drugs. I originally started with Live search on JSON Objects Data Using jQuery (originally based on this ...
user avatar
  • 1
0 votes
0 answers
10 views

New wordpress keep redirecting to localhost/wp-admin/install.php

IN my fresh wordpress install via docker. Everytime i hit localhost it gets redirected to http://localhost/wp-admin/install.php Now its missing the wp , the url should be http://localhost/wp/wp-admin/...
user avatar
  • 1
0 votes
0 answers
15 views

Error with MySQL query string [closed]

I'm trying to build a string to execute a dynamic query in MySQL. I built the following query based on some examples I found, but there seems to be something wrong with the syntax. Please let me know ...
user avatar
  • 1
0 votes
0 answers
8 views

Can't hide product attributes with css on WooCommerce Product Page

I'm having a problem in one site that I am making with wordpress/woocommerce, on product page I want to hide Size and Color from that section, unfortunately I did not succeed.
user avatar
0 votes
1 answer
19 views

Better way to list links with different meta values using same meta key?

This works, but I will need it to make 8 different lists on the page, using same meta key but 8 different meta values. Is there a more efficient way to achieve this rather than repeating the same code ...
user avatar
0 votes
1 answer
20 views

Is there a way to nest taxonomies or custom fields deeper than one level below the post type?

In Wordpress we can create a post type which can contain taxonomies (or custom fields). Can these taxonomies (or custom fields) contain anything? For example other taxonomies or something else? If I ...
user avatar
  • 103
0 votes
1 answer
18 views

2 css files? Theme css file gets override by another css file that I can not edit

I wasted quite some time already to fix this problem. I somehow have a Wordpress css file that overrides the css of my themes css. See attached image: At the top is the css which screws with my ...
user avatar
  • 1
0 votes
2 answers
31 views

How to stop execution of a function via add_action hook?

I have the following functions: function test($post_id){ do_action('test_action',$post_id); echo $post_id; } add_action('test_action',function($post_id){ if ( $post_id == 2 ) //Stop test function ...
user avatar
  • 83
0 votes
1 answer
19 views

How to add $args to any running wp_query from function.php?

Is it possible to add WP_Query arguments from functions.php to any of wp_query running on current page? For example, I want to add $args['order'] to current running wp_query on any pages.
user avatar
0 votes
0 answers
12 views

How to use category slug with a regular page

To make better looking category pages in my sites, I'm looking for a way to show the content of a regular page on the permalink /category/name. How can I achieve that ? Thanks
user avatar
0 votes
1 answer
28 views

How do I disable the built-in editor and automatically configure the properties of new pages?

I use a Builder plugin on the site. Members are editors and can create their own page. I want to disable Gutenberg so that they can only edit pages with Buldir. I would also disable the properties of ...
user avatar
  • 1
0 votes
0 answers
7 views

Bulk update status of all posts or pages on a particular path

What are the options to capture all posts or pages on a specific path - including multiple levels of parent pages - and update status (published -> draft)? Thanks
user avatar
0 votes
0 answers
15 views

Show posts from a single category by default using wordpress.com

I have a blog at wordpress.com on the legacy "Personal" plan. I blog about different but related subjects and categorise the posts accordingly. The blog was originally about one subject but, ...
user avatar
  • 101
0 votes
0 answers
7 views

Modify WooCommerce used to get all orders in dashboard

The existing WooCommerce orders table in the wp-admin dashboard orders the results by the date the order was made, but I want to modify the query to order by date and also by the shipping method of ...
user avatar
  • 101
1 vote
1 answer
22 views

Getting category posts from a certain year

Is there a way to get category posts from a certain year? I know how to get all posts posted in a certain year -> www.example.com/**year**/ or with months -> wwx.example.com/year/month (that's ...
user avatar
  • 11
0 votes
1 answer
13 views

How to make a post accessible from multiple post type slugs?

I have two custom post types colors shapes I have a post called "red" under the custom post type "colors". The default URL for this post would be example.com/colors/red Now I ...
user avatar
  • 1
1 vote
1 answer
24 views

Gutenberg add extra attributes to custom format

I'm creating a custom format (adding a custom option to the format toolbar) using the following guide: https://developer.wordpress.org/block-editor/how-to-guides/format-api/ import { ...
user avatar
  • 281
0 votes
0 answers
6 views

How to disable Page Preview on sidebar in Page Editor in backend of wordpress?

I'm trying to update this contact page and it's not letting me click "update" because it's forcing me to fill out the form. When I do a test in the required fields, it's giving me an error. ...
user avatar
  • 1
0 votes
1 answer
16 views

Show Featured Image Dimensions and size frontend with shortcode

I was wondering if I can show my featured image Dimensions (W x H in px) and the filesize in mb. In my Wordpress post with a shortcode. thank you in advance :)
user avatar
0 votes
0 answers
19 views

Related posts by current posts child category

I'm trying to use this code to display related posts by the same category as the current post but if the post is in a child category, i need to show related posts by that child category, not the ...
user avatar
  • 445
0 votes
0 answers
17 views

WordPress custom menu can't show 3. level submenu

I Use a custom walker from my menu in WordPress and my menu doesn't show all levels. https://soulofcroatia.com/ ->One Day menu item. This is my code in header.php <?php ...
user avatar
0 votes
0 answers
16 views

Variations table: tiered price in a separate column [closed]

In our store we have a variations table, it's a Product Variations Table Listing plugin for Woocommerce. Among the items in the columns, there is no option to include the strikethrough price. The ...
user avatar
0 votes
0 answers
13 views

Wordfence: A potentially unsafe operation has been detected (http response code 403) [closed]

I have implemented a question and answer forum for programming questions using WordPress. Wordfence plugin is installed on my WordPress system. Content of posts have programming code with syntax ...
user avatar
0 votes
0 answers
27 views

Custom Field: how to save array of multiple key-values in WordPress

I have this kind of data on my database: <wp:postmeta> <wp:meta_key> <![CDATA[property_icalendar_import_multi]]> </wp:meta_key> <wp:meta_value> &...
user avatar
  • 125

15 30 50 per page
1
2 3 4 5
2244