All Questions

0
votes
0answers
6 views

Wordpress custom post type permalink rewrite shows page not found

I need to have 3 custom post types in my wordpress site, each one being a parent of another. Courses > Series > Episodes I have fully created a functions file that registers the custom post types ...
0
votes
0answers
6 views

Blocks: set a default value for a TextControl

I'm creating a block similar to the WP Core Table block, which first presents the user with a form to set the number of rows and columns. I'd like to set a default value in the TextControl for the ...
0
votes
0answers
2 views

301 .htaccess wordpress sub-level [migrated]

I am trying to redirect third and fourth level links to second level. /page/subpage/subpage should go to domain.de/newpage/ /page/subpage/ should also go to domain.de/newpage/ I tried it with this ...
0
votes
0answers
5 views

How to change form field errors for ninja forms

Currently after the form submission without entering the required fields gives me an error saying This value is required. Now I want to change it for example Full name is required. On the ninja forms ...
0
votes
0answers
4 views

TinyMCE Editor as component in Gutenberg Block

I'm trying to set up a custom block that uses a TinyMCE as the text editable component, rather than using RichEditor. I can't find anything that really details how to go about this and need pointing ...
0
votes
0answers
6 views

JSON Schema Output Object rather than Array

I've set up a custom post and added various custom fields using Advanced Custom Fields. The data can be viewed here: khclassics-co-uk.stackstaging.com/wp-json/wp/v2/classic_car However, when I ...
-1
votes
0answers
5 views

How can I custom edit the Owl Carousel plugin? [migrated]

I'm using the Understrap theme and installed the Owl Carousel plugin. I've loaded all my images but the plugin does not allow me to add text to display over the images. The plugin only gives you a ...
0
votes
0answers
15 views

How to sort members list by xprofile value?

if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : do_action( 'bp_before_directory_members_list' ); while ( bp_members() ) : bp_the_member(); // the loop content goes ...
0
votes
1answer
19 views

How to display the_archive_title() and the_archive_description() - “weird” interaction

I've got the following code in my "pagetitle" template partial: <?php the_archive_title( '<h1>', '</h1>' ); the_archive_description( '<span class="archive-description">', '</...
0
votes
0answers
18 views

Translate wordpress without duplicate custom post

As I can't find a proper way to do this, I'll just drop this here : I run a website where anyone can post offers from fontend. I want the website to be multi language with switcher and/or browser ...
-1
votes
1answer
11 views

How to reduce the server response time? [on hold]

I am facing so much problem because of the server response time. As per I know the server response time must be below 0.3 but my website has 7. Can anybody help me with this?
-1
votes
0answers
12 views

Remove Article Schema Yoast

Can you tell me how to delete the article schema? This scheme is not relevant to my site. This is what I meant (screenshot):
-1
votes
1answer
13 views

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure font '<URL>'

I migrated my Wordpress site to HTTPS, everything works but I've theses errors. In my CSS, I import fonts and I tried to put theses URLs with HTTPS but it changes nothing. I verified and my link to ...
0
votes
1answer
9 views

List non-empty categories from a custom post type

I have a Custom Post Type that uses the default category, the same as the posts, and some other post types in my site. How can I list all non-empty categories from the custom post type? For instance, ...
0
votes
0answers
9 views

Multiple archive product exist

I use woocommerce for my e-shop. I don't have that much product at the moment so the pagination on product archive isn't showing up. My archive product page is located on domain.com/product, but ...
-1
votes
0answers
8 views

Sale products with branches in diffrent cities with woocommerce [on hold]

i am Creating a website of drinks and thandai , like when user order particular drink on my website and fill the checkout field ...where he select city and area under that city ... then that orders ...
-2
votes
0answers
12 views

Woocommerce prescriptive and non-prescriptive products. Add staff menmber as woocommerce user [on hold]

Woocommerce Website : The Pharmacy Website is intended to be a presentation site, and online store with prescription ability, for the use of medical practitioners. The site needs to function as an ...
0
votes
1answer
15 views

Use of undefined constant THEME_PATH

How can I fix this error? Got error 'PHP message: PHP Warning: Use of undefined constant THEME_PATH - assumed 'THEME_PATH' (this will throw an Error in a future version of PHP)
1
vote
1answer
17 views

How to display recent / random posts by its category

trying to display random posts from each category that my custom post belongs to (it is related to 2 categories). I am trying to get post categories by id. I have tried to put category ID manually but ...
0
votes
1answer
17 views

How do I render content from a wp_editor in a plugin setting field?

I have a plugin setting that uses wp_editor() to handle the input and will get echoed as part of a shortcode. Everything is working great on the admin side but when I echo the output on the client ...
0
votes
0answers
19 views

Remove divs and spans from post content

I have the below code cobbled together. I've got it saved in a standalone PHP file so I can just run it on demand. It should be pretty clear what it's meant to do: loop over all posts of type '...
-1
votes
1answer
13 views

Is it possible to print only array keys using loop in php? [on hold]

Is it possible to print array keys using a loop? Then I want to put then inside the input type. $cr_table_array_new = array( 'Name' => array('text'=> array('Enter Name')), 'Email'=> array('...
1
vote
1answer
75 views

Output the slug and name of a CPT single post taxonomy term

When I'm on a single post for a custom post type, I want to be able to grab the slug and name of the taxonomy term so I can insert them into a link. Below is what I've tried but it doesn't seem to ...
0
votes
0answers
11 views

Session Experies and Get Logged Out Within Few Minutes

I have wordpress simple blog with few plugins installed. My problem is that after logging and working for few minutes (hardly 2-5 minutes), session expires and I get logged out of the admin area. ...
0
votes
1answer
10 views

Hide duplicate entry title

I am using Divi, which introduces the Post / Page title as "h1.entry-title." And, I'm also using Open Menu plugin, which also introduces their custom post type Page title as "h1.entry-title." So, I ...
1
vote
2answers
12 views

Error establishing a database connection; After importing DB & Theme

I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost,...
0
votes
0answers
6 views

Customizer: Upload and unzip zip file in specific folder

I'm trying to upload a zip file in the Customizer that will unzip itself and contents be placed in a specific folder. So far, I have the following control in the Customizer: $wp_customize->...
0
votes
1answer
8 views

How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?

Using the wordpress gallery below, I want to show the html content of an anchor tag so that when I click on a link to get to a specific gallery I will navigate to the anchor tag in the description ...
1
vote
1answer
19 views

Create thumbnail size only for a few images?

I have a few posts that require their thumbnail sizes to be 1000x430. If I register this size and regenerate the thumbnails, it will create this size for all images in the media folder, if I'm not ...
0
votes
1answer
10 views

Best practices/popular methods for distributing a program with a plugin?

Are there any best practice guidelines regarding how a plugin should distribute a third-party program with it's own installation? If there are no guidelines, then what are the most popular methods? ...
0
votes
1answer
10 views

How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug

I'm setting up "special" url structure for posts etc Result i want to get is: sitename.com/club/justcavali club is term from taxonomy (club_type) and justcavali is post type (booking_type) after i ...
0
votes
0answers
3 views

Custom sortable columns not clickable [duplicate]

I have attached several custom columns to the WP users which are displayed in the admin Users list. I have made the columns sortable in that I've set up the ordebry and order GET params to filter by ...
-2
votes
0answers
27 views

I want to make my own wordpress theme framework

I'm creating my own WP Theme framework. Please I want a function which the the user will use to select the sidebar she/he want ei left or right sidebar. and all WP query which I will use to select the ...
0
votes
1answer
22 views

Issues when changing == to ===

What am I missing... when using === in the code, the front end doesn't show an element at all until I disable and then re-enable an option in the WP Customizer. For example, I have a logo that can be ...
1
vote
1answer
11 views

How can I add arbitrary `data-` attributes to a block's `edit()` container?

For example: Before: <div id="block-fc502ca9-0d7b-440c-959c-3da152db0192" class="wp-block editor-block-list__block" data-type="wordcamp/schedule"> After: <div id="block-fc502ca9-0d7b-440c-...
1
vote
1answer
19 views

Sort by two dates. Default entry date and custom field if present

I have a custom post type where there is an option to sort by date. There is however a custom date field that allows changing the display date. This custom date field is not always filled. Right now ...
0
votes
2answers
15 views

I am not able to login to my wp-admin panel

I changed my Wordpress folder name in htdocs as localhost/ecom/ and now when I try to access localhost/ecom/wp-admin/ it shows page not found
0
votes
1answer
17 views

New user notification issue

I'm having an issue with our business' website. Every new user that registers on our site will never get an email confirmation which has the randomly generated password. As for us, the admins, we do ...
0
votes
0answers
25 views

Gulp in Bootstrap child theme [on hold]

I'm a beginner when it comes to Gulp. I would use it primarily to minify CSS and JS. Is it possible to use it with a child theme? In this case, I'm using the WP-Bootstrap-Starter theme as parent. ...
1
vote
1answer
15 views

Wordpress Multisite with different domains and themes

We want to set up a multisite Wordpress install on our main domain, let's call it "mainwebsite.com", as well as a number of other domains, let's call them "mainwebsite2.com" and "mainwebsite3.com" ...
0
votes
0answers
11 views

Wordpress/Gutenberg Toggle Saving, But Not Changing

I've been struggling to get my head around the new Gutenberg way of using React javascript to create a sidebar toggle. I have the text field saving and storing fine, and I have the checkbox itself ...
0
votes
1answer
16 views

correct validate inputs

How correct validate data from user to save in database from inputs? I use this for textfields: $name = trim(sanitize_text_field($_POST['name'])); But if i add special signs like "&*({} ...
0
votes
1answer
19 views

Using featured image of blog archive page

On my custom wordpress theme, I am using the featured image thumbnail for all of my pages to be the header of the page. I've created a page called "blog" and using it as the archive ( via settings ->...
0
votes
0answers
12 views

Get chars after last , (comma) country [migrated]

I want to get last chance of comma (,) in a $country. But how do I do it? foreach ($countries as $country) { $country_id = $country['ID']; $country = get_the_title().", "; //comma echo "<...
0
votes
0answers
12 views

When creating category, it creates automatically tag, or, when creating tag, it creates automatically category in same name

I have a weird problem. For example, when i create test category, worpdress is creating tag as test automatically. Or vice versa. I tried everything i know. 1) Disabled theme and plugins. 2) ...
0
votes
1answer
20 views

Woocommerce - exclude only older out-of-stock items

Trying to find a way to exclude out of stock items from listing, but only after some time (let's say, if they're older than one month). I know I can exclude all of them easily, or change the order ...
0
votes
0answers
16 views

Why does Google Search Console Couldb't fetch page-sitemap.xml? [on hold]

New Google Search Google couldn't fetch my page-sitemap.xml while checking manually on my websites are all working fine. Example: These are the sitemap inside my sitemap_index.xml https://example....
0
votes
1answer
18 views

Delete ACF repeater field row on Front End

I would like to delete row from front end. This is what i did : HTML : <?php $row = get_row_index(); ?> <tr data-rownum="'. $row .'"> <td> <span class="deletecontrat ...
0
votes
0answers
10 views

use custom plugin js file in woocommerce setup wizard [on hold]

I want to use custom js code in woocommerce setup wizard. like here i write down some information for example if i integrate a google map auto fill and on the behalf remaining fields auto fill the ...
0
votes
2answers
40 views

Change image using only CSS [on hold]

I'm using the twenty fifteen theme. I have a logo set using the WP Customizer. I want to have the image change on mobile or tablet view. The breakpoint is anything smaller than 59.6875em. I'm ...

15 30 50 per page