All Questions

-1
votes
0answers
5 views

Sale products with branches in diffrent cities with woocommerce

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
8 views

Woocommerce prescriptive and non-prescriptive products. Add staff menmber as woocommerce user

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
10 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
11 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
13 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
13 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
11 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
25 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
6 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
1answer
7 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
5 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
7 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
15 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
8 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
26 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
21 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
18 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
14 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
13 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
20 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
14 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
14 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
11 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
19 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
13 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
11 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
9 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
38 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 ...
-1
votes
1answer
17 views

How can I rebuild my websites while I don't have databases?

Years ago, I had made multiple WP sites and now I see some of them as WP folders on my local disk. I want to make them as working websites. How can I do that?
0
votes
0answers
15 views

How to show galleries from a specific NextGEN album ID inside a custom WordPress page template?

I have a WordPress page template where all NextGEN galleries are displayed on a page: <?php global $nggdb; ?> <?php global $wpdb; ?> <?php $galleries = $nggdb->find_all_galleries('...
0
votes
0answers
8 views

Search form filtering on default language

I'm building a bilingual website ( arabic and english ) I'm using a plugin called search and filter that gives me the possibility to filter by category,post date..etc I've an issue when I switch ...
1
vote
1answer
67 views

Disable front-page.php template

I use front-page.php on my template to display home page. But I want to disable if the user uses another page for the home page from settings. Is there a solution? When user select a page from ...
0
votes
0answers
8 views

How to Change WordPress Sub Folder Image Directory To Root Directory [on hold]

मेरी एक वेबसाइट है जो अभी हिन्दी में है zaykarecipes.com में इस वेबसाइट के पेज ट्रांसलेट करके इंग्लिश में बना रहा हूँ तो मेने इसके लिए एक सुब फोल्डर ( zaykarecipes.com/eng ) में एक दूसरा नया वर्डप्रेस ...
0
votes
0answers
4 views

Wordpress Homepage is working fine but Inner pages giving 404 Error after shifted to AWS server [duplicate]

After shifting Wordpress site from Linux server to AWS server, inner pages is giving 404 error while Homepage is working fine. For example when we hit /Our-services or /about-us pages it gives error ...
0
votes
1answer
18 views

Wordpress Inner pages giving 404 Error after shifted to new server

When we made site at our server end it was working fine which was linux server.after hosting this site to AWS then it is giving me error for inner pages and if we change something it is not affecting ...
0
votes
0answers
10 views

“error_message”: “Sorry, you cannot list resources.” using WooCommerce API

When requesting the test API, getting the following response: { "errors": [ { "error_code": "", "error_message": "Sorry, you cannot list resources." } ]...
0
votes
0answers
19 views

Content -> Post is easy, but Post -> Content is hard

I have a CPT/Pods, so it makes Post to Country, but it's the almost identical. Content to Post (or Country) is easy, example: /country/page/5 (Content) to /country/taiwan/ (Post). while ( $query->...
1
vote
1answer
23 views

Display link to taxonomy archive only if it has posts with certain custom field values

Posts on my site describe future events, with the event date recorded in a custom field in Unix time. Generally, only upcoming events are relevant to visitors. As such, I'd like to display ...
0
votes
0answers
6 views

How to restrict a product list in woocommerce so that products are not selectable ie they can only be added to cart

I am investigating the possibility of using woocommerce as a volume calculator (not as an ecommerce solution). However, it does not need to calculate volume from measurements...we have already got ...
0
votes
1answer
17 views

Can I edit domain settings if I didn't create the site?

A friend has created a WordPress site and added me as an administrator. I need to be able to add a sub-domain that points to a different website but all the instructions I can find require me to ...
0
votes
1answer
19 views

find out reason of “Updating failed” in Post-editor

In some cases, if there is issue in code or whatever, and try to update the post in Gutenberg post-editor, you will get "Updating failed" error message: Is there any way to debug/find out the reason (...
0
votes
1answer
13 views

Is it possible to create a WordPress table using array and loop?

I am trying to get all data fields name and data types from an array, but the query is not working. <?php $cr_table_array = array( array( 'data_field' => "id", 'data_type' => "mediumint(12) ...
0
votes
0answers
17 views

How to prevent post update using transition_post_status

I am building an application using WP REST API. Ideally, users are able to post only if they have a subscription. Here is how I plan to make things work: Set expire_by user meta when they sign up. ...

15 30 50 per page