All Questions

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

Get all media from wp-json/wp/v2/media

I'm struggling with a strange issue. I was pretty sure that I can use such a pattern to collect all media: def get_all(url): all_results = [] page = 1 posts_url = "{0}?per_page={1}&...
user avatar
0 votes
0 answers
9 views

How to change the "main menu" of a "post"?

How to change the "main menu" of a "post"? Currently, my posts display a menu called "primary"; what if I created another menu called "primary-2" and wanted to ...
user avatar
0 votes
1 answer
7 views

Using "add_image_size" to register custom image sizes inside plugins not working

I noticed that most examples of add_image_size() is done via the after_setup_theme hook. Which means, for it to register, one has to switch theme and reactivate the theme. Which is not ideal for me as ...
user avatar
  • 137
0 votes
0 answers
4 views

Optimising WP_Query with ACF Fields

I am wondering if it's still possible to optimise the WP_Query or also if there's another way of doing it. I have the post type and a custom post type called case-study which gets displayed on the ...
user avatar
0 votes
0 answers
5 views

Display Post Title From Select Choice Loop in Advanced Custom Fields (ACF) - Wordpress

Dear Wordpress Developer, I have custom post type (CPT) and the name is Programs. Inside the post type admin, I only give the title input and ACF "Select" Field Type. From all ACF tutorial, ...
user avatar
  • 5
0 votes
0 answers
7 views

Creating a Shopkeeper Child theme

I'm using the Shopkeeper them and trying to create a child theme so I can add some custom PHP in my functions.php file. https://themeforest.net/item/shopkeeper-ecommerce-wp-theme-for-woocommerce/...
user avatar
0 votes
0 answers
10 views

Problem with customize page cached in WordPress.com

I hosted my site on WordPress.com, now having a problem that I have a customize page that will random generate an ID then create and update database records(custom post type)(using wp_insert_post &...
user avatar
  • 1
0 votes
1 answer
14 views

How to add/enqueue Custom CSS for a custom taxonomy page?

So this is what I have done for my homepage so I load css that only loads on my homepage function enqueue_frontend_assets(){ if(is_page_template( 'homepage.php')) { wp_enqueue_style( '...
user avatar
0 votes
0 answers
26 views

Get all taxonomy terms for attachment, get_terms does not work for me [duplicate]

I have created tags and category for my media attachments with a function like this register_taxonomy( 'gallery-tags', 'attachment', array( 'labels' => array( 'name' ...
user avatar
  • 624
0 votes
0 answers
7 views

Contact Form 7 - Shortcode generated form-tags are not parsed in the Form editor

I have enabled the shortcode for wpcf7: add_filter('wpcf7_form_elements', 'do_shortcode'); So the Form editor can run your shortcodes. Within the Form editor of Contact Form 7, I have a shortcode, [...
user avatar
0 votes
0 answers
16 views

Get post publishing date from within custom HTML block

I am using a custom HTML block to create a customized title cover for a post on my WordPress site. I would like to get the current post publication date (rather than hard-coding it in and having to ...
user avatar
0 votes
0 answers
15 views

Category archive page has two URLs even when default theme is active with no active plugins

I've changed my permalinks to Custom: /%category%/%postname%/, and that (I suppose) caused my category archive pages to have two URLs. For example, category SPORT is available on /sport and /category/...
user avatar
0 votes
0 answers
16 views

HTML Img with data:image src gets sanitized in admin?

In the WordPress admin panel (dashboard), I want to add an image inside an ACF field description. Since it's a simple SVG icon, I want to load it using <img src="data:image/svg+xml..." /&...
user avatar
  • 123
0 votes
0 answers
32 views

Allow Weak Passwords

a client wants to use a very specific password and i'm trying to update it in the user page. i keep getting this error, Please choose a stronger password. Use at least 12 characters, and include ...
user avatar
  • 101
0 votes
0 answers
10 views

Display the output from Custom User Fields from a Wordpress user profile on a Wordpress Custom Page

I created Custom User Fields on a User Profile Using this tutorial. How do I add a field on the Users profile? For example, country, age etc. I created three custom fields with the names: "ID&...
user avatar
0 votes
0 answers
16 views

My Friend's Site Isn't Displaying Properly [closed]

The site, https://scaliseandhamilton.com, isn't displaying properly. Anybody have any ideas why? The .htacess access and php.ini files are pointing to the correct folder. I'm stumped. TIA.
user avatar
0 votes
0 answers
9 views

Move add to cart above product option [closed]

how to Swop these two fields so that add to cart is above option selector
user avatar
1 vote
1 answer
16 views

Send retrieve password notification email with custom HTML email template

How to send custom HTML email for reset password? I know there will be a hook for that (retrieve_password_notification_email) But how to use it? Requesting for an example ...
user avatar
0 votes
0 answers
13 views

Media dint apper in wordpress media library after uploaded through file manager

I tried to upload a 400mb file to wordpress site through media library, but it show this error message 'Unexpected response from the server. The file may have been uploaded successfully. Check in the ...
user avatar
0 votes
0 answers
7 views

How do I have a user upload a blog post and then retrieve that to display in a card on the site?

Hello everyone, this is my first time on a forum like this so please be gentle! I will try asking and answering as accurate as I can. I have to create a site in which you can send in some data using a ...
user avatar
  • 1
0 votes
0 answers
15 views

How to load new posts in wordpress homepage without refreshing?

After every 5 seconds a new post is added to my wordpress db. But when I am in the homepage If there is any new post added in the db at that time, I have to refresh the site to see the new post in the ...
user avatar
0 votes
0 answers
23 views

How to load new posts from wordpress db into wordpress homepage without refreshing the site?

4.5 Hasan Mahmud to Madhevere, no run 4.4 Hasan Mahmud to Madhevere, no run, good length delivery outside off stump, Madhevere defends off the back foot 4.3 Hasan Mahmud to Madhevere, no run, full ...
user avatar
0 votes
0 answers
15 views

"Menu order" being ignored when querying posts from a parent taxonomy with "include_children" set to true

I have a CPT of articles and a custom taxonomy of collection. This is how the articles are assigned to the collections: Collection 1 Article 1 (menu_order = 1) Article 2 (menu_order = 2) Sub ...
user avatar
0 votes
0 answers
30 views

Warning: Attempt to read property "term_id" on int - Woocommerce

I would like to create a condition to manually hide product categories within the shop. I already started from a code base but I am trying to understand why if I put the is_product_category() ...
user avatar
  • 21
0 votes
1 answer
15 views

Mobile mode Hamburger menu is not working properly [closed]

Below is my desktop mode menu: here menu is coming properly but same menu is not working properly in mobile mode. In mobile mode, when I click on hamburger menu, it is displaying something else(...
user avatar
0 votes
0 answers
26 views

admin-ajax.php 500 error when new users try to register

I have WordPress website and I get admin-ajax.php 500 error when new users try to register. jquery.min.js?ver=3.6.0:2 POST https://example.com/wp-admin/admin-ajax.php 500 send @ jquery.min.js?...
user avatar
0 votes
1 answer
12 views

prevent contact form 7 from submission on certain condition

I have a contact form 7 form and in that I have an acceptance checkbox for terms and condition and I want to make that checkbox required and add some class when checkbox is not checked and prevent ...
user avatar
  • 1
0 votes
0 answers
11 views

Customize Widget Navigation

How is it possible to customize the footer menu that has been added via widget and not defined in the functions file? I'm looking for a way to remove the container and add a predefined icon for the ...
user avatar
1 vote
1 answer
18 views

Generate the post title from ACF fields

I want to generate post title from first name and last name which are two fields. The posts are generated in WS Form and saved with no title. I tried this code however it does not seem to work. Any ...
user avatar
0 votes
1 answer
14 views

get_page_by_title() doesn't return the post object if the title has inverted comma (')

The question is self-explanatory. I have tried these so far. I have a post named John's Test with post id 1. In single.php, I tried, $extraPostID = 1; $extraContent = get_page_by_title(get_the_title($...
user avatar
2 votes
1 answer
24 views

wp_script_is('enqueued') true, but file not requested in HTML

This is really confounding. In a child theme functions.php file, I have confirmed that WP thinks my script(s) are enqueued: add_action("wp_enqueue_scripts", "my_scripts_styles"); ...
user avatar
  • 529
0 votes
0 answers
22 views

Disable Page if user not logged in

I am using the zoom plugin for creating workshops, and I want to make the nonusers cant access the workshops pages until they log in. the link for each workshop will be different ex (https://******....
user avatar
  • 5
-1 votes
0 answers
13 views

Display the number 0 to the place of nan [closed]

this is my code <?php $sql = $wpdb->prepare( " SELECT meta_value FROM {$wpdb->prefix}commentmeta INNER JOIN {$wpdb->prefix}comments ON {$wpdb->prefix}commentmeta.comment_id = {$...
user avatar
  • 1
0 votes
1 answer
16 views

Split have_posts() by two columns [closed]

I need to divide into 2 columns this loop. For example, 4 elements will go the left column, and the remaining 3-4 will go to the right column. <?php global $wp_query; $args = array(...
user avatar
1 vote
0 answers
15 views

Footer option is missing in Customiser

Below is my dashboard screenshot, I don't see the footer option in my customizer. I have struggled a lot to research on this but no luck. Can anybody please help me with this? how can I show the ...
user avatar
1 vote
0 answers
32 views

Gutenberg text field validation

I have been searching for ages but can't seem to find an exact method on how to perform text input validation when building custom blocks. I saw that for TextControl inputs you can just pass the ...
user avatar
0 votes
0 answers
26 views

Best channel for wordpress theme customization? [closed]

again I have to change Wordpress theme functionality to satisfy clients and my requests. Envato has a service like that, but its pricey. On Freelancer you have a big community, too big, you get bombed ...
user avatar
0 votes
1 answer
10 views

HTML dropdown setting not showing last saved value in the database

I want a select-dropdown field to display the last saved option in the database; I started with this video from YT, https://www.youtube.com/watch?v=hbJiwm5YL5Q&t=3969s and got as far as 1:05:00 ...
user avatar
0 votes
0 answers
11 views

Only some shortcodes aren't working on custom theme

We had the calls setup exact like they should be, but its not showing correctly. We use this function at the bottom of page add_shortcode('test','testing_function') ?> then in the functions.php ...
user avatar
  • 1
0 votes
1 answer
19 views

POT file generated using WP-CLI does not retrieve strings from translation functions with FQN (Qualifier)

I am generating .pot files by using the WP-CLI command above: wp i18n make-pot ... It works well, but it does not retrieve strings from translation functions with FQN (Qualifier). Example: \__( 'This ...
user avatar
0 votes
0 answers
30 views

Show ranking based on post id

I created a rating for my site with this code, now it shows all the ratings for all posts and I want to show the number of ratings based on the post ID. comment.php <div class="custom-comments&...
user avatar
  • 1
0 votes
0 answers
15 views

WordPress: redirecting to the form page after form submission to admin-post.php

I created my first WordPress plugin (I have a lot of coding experience, but that comes from the embedded software world). It includes a form, presented on the front end. To process the form entries, I ...
user avatar
0 votes
0 answers
14 views

Failed to import "File name": Invalid post type jetpack-portfolio

I'm importing all my content from wordpress.com to wordpress.org but keep getting the error Failed to import “Post Name”: Invalid post type jetpack-portfolio. I need to transfer all my portfolio and ...
user avatar
  • 1
0 votes
1 answer
19 views

Authorize subdomain to access and read user and admin cookies

My subdomains redirect alls in the main domain . I am the admin. We can access to my website by the main domain or subdomain. I use that to share cookies between domain and subdomain : There is no ...
user avatar
  • 11
0 votes
0 answers
17 views

How to Add Custom Post Status in Wordpress Admin

I have tried Below Given Code to add more post statuses for our writers // Registering custom post status function wpb_custom_post_status(){ register_post_status('rejected', array( '...
user avatar
  • 1
1 vote
1 answer
19 views

check if post is set to "password protected"

I'm trying to find a way to show different content if a post is set to "password protected", once the user entered the correct password. I want to show the price of an art piece only on ...
user avatar
0 votes
0 answers
13 views

Create new email in WooCommerce

I'm creating a wishlist plugin that is already functional. I want it to be possible to send an email to the customer reminding them of the items they have on their wishlist. How can I create and send ...
user avatar
0 votes
1 answer
38 views

PHP Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false

In my functions.php I have: // Load Google Optimize script in head function us_homepage_optimize_test() { $site_id = get_current_blog_id(); if(is_page(10) && is_main_site($site_id)) { ...
user avatar
  • 1,626
0 votes
0 answers
14 views

My Header Layout changes on My Account pages

I created a header using elementor. My header works fine on pages of the site except the My Account and its child pages. Can somebody help me. This is my website: https://staging.buellairhorns.com/ My ...
user avatar
0 votes
0 answers
22 views

How to resolve a site with too many plugins when I want all the features [closed]

I've built a site that I want to have lots of features on - including a shop (WooCommerce), social (BuddyPress), blog with user submissions, events calendar, Q&A forum...yes, I have big dreams. ...
user avatar

15 30 50 per page
1
2 3 4 5
2257