All Questions

1
vote
0answers
7 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
7 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
7 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 ...
-1
votes
0answers
19 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
15 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
10 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
15 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
12 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
9 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
16 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
12 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
10 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
10 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
16 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
11 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
10 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
8 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
35 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
15 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
13 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
65 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
7 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
16 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
9 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
22 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
16 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
17 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
10 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
14 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. ...
0
votes
0answers
8 views

Get WC Checkout add-on value from Order

I try to get the WC checkout add-on value stored in my order but the function does not work, can't find the WC_Checkout_Add_On class, maybe because i have removed "SV_WC_Plugin_Compatibility::" but if ...
0
votes
0answers
10 views

How to add child page to Woocommerce product page?

The goal is "add page to product". ex. bmw.com/shop/i8/ << a Woocommerce product page bmw.com/shop/i8/photo/ << normal page I know Woocommerce have it own page taxanomy, it's not have ...
0
votes
0answers
8 views

Video inside a picture

I'm trying to find a plugin or how to show a video in a image. Put a video on a particular area of a image. I have a newsroom image that I would like a video to play on a area like a tv screen. Any ...
0
votes
0answers
9 views

Remove comma in wp-json results

I am using the Wp REST API to filter posts using AJAX. The problem is that when the posts are filtered, a comma is added between them but I am not sure where is it comming from. Here is the code I am ...
0
votes
0answers
9 views

Wordpress Media URL is showing // in URL

I am facing a problem my website media URL are showing like domain.com//media due to this my website is working fine without SSL but when i open it with https:// all my media images disappear. I want ...
-1
votes
0answers
22 views

Use functions.php to display image attachment pages at full size

I'm using Elementor in a site featuring a lot of images which I'd like to display individually using a custom attachment page, which can be generated automatically using Elementor's Page Builder ...
-2
votes
0answers
15 views

How to copy and paste ms-word document into wordpress?

So, I have a post in ms-word with lots of images, lots of mathematical symbols. I am afraid that I will lose formatting. I used to use mammoth.docx converter. After update, it doesn't work. So, I ...
-2
votes
0answers
15 views

Sort post by meta key [on hold]

if(get_post_meta(get_the_ID(),$field,true) && $field == 'is_this_a_job' && (get_post_meta($post->ID, 'meta_key', true) == 'last_date') && (get_post_meta($post->ID, '...
0
votes
1answer
21 views

Loading two different AJAX requests on two different pages

I hav ebeen trying to call two separate AJAX requests, on separate pages, each pulling in their respective parts. Right now, it only pulls in ONE of the AJAX requests on both pages even with specific ...
-2
votes
0answers
10 views

any url ends with ?random-post=1 automatic redirect to another page

In my site many urls ends with ?random-post=1 automatic redirect to another page Also do with home page https://www.example.com/?random-post=1 Its not redirect to https://www.example.com/ I need ...
-1
votes
1answer
27 views

First post in loop displays twice

I have created a wp_query where I change the post format after every 4th post. Unfortunately, the first post is displaying twice which is surely something wrong with my modulo conditions. I appreciate ...
0
votes
0answers
12 views

How to link my plug-in to form parsing PDF plug-in?

I've developed a plug-in with specific (I'm mean non WordPress native) permission system, specific tables, specific tab system (each tab actually has a distinct form given that each has like hundreds ...
0
votes
0answers
9 views

Creating a child page with the parent set as the front page results in strange permalink

I'm not sure if this is a bug by the theme author but when I try to create a sub page (child page) with the front page as the parent, the resulting permalink includes the name of the template. This ...

15 30 50 per page