All Questions

0
votes
0answers
11 views

Wordpress Carousel on mobile blank image

I am using a plugin to show a carousel of items on my website. On desktop, the images load perfectly but on mobile, the images appear blank. The html code displays the url link and I am sure that the ...
0
votes
1answer
8 views

Taxonomy doesn't follow slug permalink structure

I started with a fresh template and added a Post Type according to specification at GenerateWP. I then added a taxonomy to the custom post type, also according to the above-referenced website: // ...
0
votes
0answers
39 views

Custom Fields not working properly

I want to add custom fields, phone and address, in front end of my website. I've read this question : How do I add a field on the Users profile? For example, country, age etc . I typed this code ...
0
votes
1answer
22 views

How to invoke a HTML custom button based on a HTML dropdownlist menu

I am a WordPress beginner and want a help I created a HTML dropdown list like this: <select name="DropDownList1" id="DropDownList1"> <option value="select you location">&#xf015 ...
1
vote
1answer
9 views

How to move 1 WP site from a mult-site environment to a different multi-site area

How to move 1 WP site from a mult-site environment to a different multi-site area? Doing on same server if that assists at all. We know how to move a site from a multi-site area into a single site ...
0
votes
0answers
21 views

Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?

Writing a little plugin my code is like this: add_action( 'edit_user_profile_update', 'sulock_save_profile_fields' ); function sulock_save_profile_fields( $user_being_edited_id ) { if(...
0
votes
0answers
18 views

Upload file and create a page for it

I would like to make possibility for users to upload a specific files on my page. In example let it be a txt file. When txt file is uploaded I want that it will create a post/page with data about this ...
0
votes
0answers
11 views

Page not found on page. How to write a rewrite rule for a custom post type?

add_action('init', 'my_custom_init'); function my_custom_init() { register_taxonomy('manufacturer', ['product'], [ 'labels' => [ 'name' => 'Manufacturer', '...
0
votes
1answer
15 views

Get a list of Product Categories inside a loop

I am trying to list out product categories as a list Farm Cycle: 6 Months KADUNA The code below output as Farm Cycle: 6 Months, KADUNA add_action( 'wpo_wcpdf_after_item_meta', '...
0
votes
0answers
16 views

Correct Hook/Filter to amend category choices on post edit page

I want to filter available terms for a user when they create/edit a post, I have assigned a custom field to the user where it returns an array of IDs for the categories they can edit. In an action ...
0
votes
1answer
17 views

Multi-Network without plugin

Looking for a way to enable the Multi-Network feature without the WP Multi Network plugin. Essentially, I'm running into some errors with it where my subsites can't be accessed, so I wanted to see if ...
0
votes
1answer
10 views

main menu hide woo commerce single products tittle

sorry maybe its off topic but i couldn't find any answer in oceanwp and woocommerse forums i use oceanwp them and elementor for design and my problem is main menu hide single products tittle ...
0
votes
0answers
9 views

How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?

Category and Taxonomy admin pages are different from posts pages in that the items are listed and the form is also present on the same page. I would like to separate them for custom taxonomies so ...
0
votes
3answers
21 views

Return all users that have one or more published blog posts

I am working on a plugin for which I need to create an array of all users (name and ID) that have one or more publish blog posts. Looking at the documentation for get_users() it does not seem to ...
0
votes
1answer
11 views

get_posts changes main query

Here is my code in single.php : <?php if (have_posts()):the_post() ?> <h3><?php the_title() ?></h3> <!-- Prints `Hello World` --> <?php if (!empty($...
1
vote
1answer
23 views

wp_set_object_terms not updating database without a die()

I have added custom taxonomy to media attachments. From the individual post page these are updating correctly, with some tweaks to get the column count updating correctly - and I can see these changes ...
0
votes
1answer
26 views

What are the default breakpoints set in WordPress?

When you visit your site and click customize, you can change the layout of your website to its Tablet and Mobile counterparts. What exactly are the default breakpoints set by WordPress for Desktop, ...
0
votes
2answers
25 views

Warning: count(): syntax problem of the count () function

I'm trying to repair a function that was working properly before going to php 7.2. The error comes from the count () function but I do not know how to rewrite it. Can you help me ? Here is the error ...
-1
votes
0answers
13 views

protect some REST endpoints with an API key?

I would like to build a premium plugin. My idea is that the REST endpoint of my API website would be protected by an API key. On the client side, admin would have to enter its API key in the plugin ...
0
votes
0answers
12 views

Only allow user to download files from wp-content/uploads/ subdirectory that matches their user ID

I have this function which puts files in a /uploads/ subdirectory based on their user ID (for example, user with ID 23 uploads image.jpeg, it ends up here: /wp-content/uploads/23/image.jpeg ) and it ...
0
votes
1answer
42 views

Change the week start day from Monday to Saturday

To display the number of weekday I use the following: echo "Today's date is: " . date("Y/m/d") . "<br>"; echo "The weekday is: " . date("l") . "<br>"; echo "The number of the weekday is: "...
0
votes
1answer
13 views

My password protected WordPress page is displaying 403 error when I log in

I created a new page on word press and made it password protected. When anyone tries to log on they get taken to the correct page and asked to enter the password. It is a generic password for ...
0
votes
0answers
8 views

Woocommerce - restock stock on order cancel [on hold]

Why if customer cancel request the stock isn't restock but if the admin cancelled the order the stock is restock? How to automatically restock the cancel request?
0
votes
0answers
15 views

wp_verfy_nonce keeps giving false

i have a form somthing like this <form id="sample_docs" method="post" action="<?php echo admin_url('admin-ajax.php'); ?>"> <?php wp_nonce_field('nonce_action_sample_docs', '...
0
votes
0answers
14 views

Google indexing Paramaters on WordPress sites

I am having a strange issue with Google indexing parameters after the trailing slash on my site which is causing WordPress to throw 404 errors. +&cd=2&hl=en&ct=clnk&gl=za The above ...
0
votes
0answers
9 views

woocommerce or wordpress hook to override product_cat

When a person adds a product, I want to automatically/programmatically set the product category based on the values of other product attributes. I'm trying to look for the right hook where I can ...
0
votes
0answers
9 views

WPSiteSync & Advanced Custom Fields

I'm using the plugin WPSiteSync which can copy posts from one wordpress install to another. It works well however I’m using Advanced Custom Fields with a Relationship field. When it copies over posts ...
0
votes
0answers
26 views

Contact form 7 refreshes page after pressing submit button and does not send anything

I have used CF7 plugin for other projects and it worked just fine, but now I can't understand, why it just refreshes the page after hitting submit, even validation does not work. Email works, if I ...
-2
votes
0answers
8 views

Woocommerce | How Can I add location picker using google maps in the checkout page?

Can you please help to add the location picker field in the billing address in the checkout page using google maps? Our website is based on woocommerce. Thanks,
2
votes
1answer
44 views

taxonomy list display custom post count

I use $term->count to display post count but it displays the total count of all type of custom posts attached to taxonomy... I just want to display the count of only a specific custom post type ...
0
votes
0answers
16 views

Accessing data from Google Cloud Datastore in Wordpress site

I want to access data stored in Google Cloud Datastore (or possibly other Google database option) in my Wordpress site. I have tried to find information about this without much luck. The alternatives ...
2
votes
0answers
19 views

WordPress settings API with tabs - options save only for an active tab

The problem is that whenever I activate tab and save options, all settings in the active tab remain as they are, but settings in other tabs reset to defaults. If possible, I would like to keep the ...
1
vote
1answer
39 views

Dynamically update post title in admin page

I have a textarea in admin post page when creating new post, that's title: <textarea id="post-title-0" class="editor-post-title__input" placeholder="Add title" rows="1" style="overflow: hidden; ...
1
vote
1answer
50 views

Can paginate_links() be customized for a specific category or tag?

I am creating category and tag page templates for my client so they can post news articles to the news category page and specific news pages separated by tag with a pagination nav at the bottom of ...
1
vote
1answer
61 views

class click counter save number

When the user clicks class count the counter should work: <div class="pop-btn" class="counter"><a href="https://www.example.com">Know More</a></div> <div class="count">&...
2
votes
1answer
72 views

WordPress query through Products variation stock [on hold]

I have WooCommerce variable products and a filter which is filtering products based on variation attributes. I have variation attribute depth which has numeric value (from 1 to 20) and the filter is ...
1
vote
0answers
14 views

Add An Activity Filter By User Id In Buddypress Plugin

On the Buddypress activity page, you can filter by All Members, Favorites, Mentions, ect… How do I add a filter to only show updates from a specific user id? There is for the "All Member" filter ...
0
votes
1answer
17 views

WooCommerce Registration, Sync User, Billing and Shipping info

I'm setting up a silent auction to use at a fundraiser. All items are being picked up at the event, so I'm trying to get around having Billing and Shipping addresses, but I don't think I can do that. ...
0
votes
0answers
7 views

Plugin to add product categories or filters in archive page [on hold]

I recently bought the theme below. I was able to add a sidebar with product categories in the shop page but not in category archive page... is there a plugin that can achieve this? https://mylisting....
0
votes
1answer
16 views

Changing default img html markup but not in admin back-end?

Based on some posts on Stack and ACF forum I've created code for changing default img html markup for lazyload script lozad.js. It's works great, but works also in admin back-end. I was trying to use ...
0
votes
0answers
5 views

WooCommerce Deposit not taking second payment via Stripe

We're using WooCommerce Deposit, but its accepting the payment from the client side... just not seems to process the payment from the client side. The payment also does not get authorised which makes ...
0
votes
0answers
11 views

Is there a way to programmatically add a DNS mapping for a Wordpress site?

I am trying to find a way to add a CNAME (a subdomain) to map to another website using the add a DNS Record option described here: https://en.support.wordpress.com/domains/custom-dns/#adding-custom-...
0
votes
0answers
10 views

WooCommerce Link Misbehaviour

This is a wordpress website using the Lambda theme by Oxygenna The 1st link (My Account) behaves normally. The links after it (Edit Billing Address, Edit Shipping Address, etc) all lead to the ...
0
votes
2answers
13 views

Will has_category be true is used on index and one of queried posts has the category?

If i use has_category('dogs') on a template like index.php or archive.php or search.php and one of the posts displayed on the loop have the category dogs, will the function return true? I know it ...
0
votes
0answers
14 views

Do I need WordPress feeds for WooCommerce store?

I have code to disable feeds and remove feed links from the website. When is it safe to use it as an optimization technique for a WooCommerce store? Are any core WooCommerce features dependent on ...
1
vote
0answers
11 views

Force media library editor to overwrite the original filename?

I use the WP All Import to bring in images and stock info via XML into my store. However some of the images that come from a 3rd party system are rotated wrong. If I rotate them manually in the media ...
0
votes
1answer
24 views

Display the search results like the original pages

I'm creating my site (locally) and I'm using the starter theme underscores.me I created few pages using bold, italic, and other text styles, but I noticed that in the Search Results page, the content ...
0
votes
1answer
23 views

Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()

I am getting this error which Fatal error: Uncaught Error: Call to undefined function wp_nav_menu() in /home/stageidg/public_html/idg/wp-content/themes/idg-child/secondmenu.php:2 Stack trace:...
0
votes
1answer
22 views

Change CPT permalink to use the category

I have a CPT called teachers and a custom taxonomy called teacher type. I'm using the code below to rewrite the url for the CPT and instead of being like: website.com/teachers/post1 it changes the ...
0
votes
0answers
8 views

How to debug in wordpress like we do in java in eclipse F6,F5 and F7?

I am very new to wordpress. I have always worked on Java and its related frameworks like Spring,Hibernate. I find it very difficult to understand the flow without debugging. Is there any way to debug ...

15 30 50 per page