All Questions

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

How to replace Twentytwenty theme's menu icon ( three dots ) with a hamburger menu icon ( three lines )?

I would like to replace the Twenty-twenty theme's default menu icon ( three dots ) with a more commonly used hamburger menu icon ( three lines ). I have found the class-twentytwenty-svg-icons.php file ...
0
votes
0answers
16 views

How to display full portfolio URL pass including category and sub-category? [closed]

Custom permalink structure doesn't work for the WordPress portfolios. What I'm trying to achieve: mywebsite.com/portfolios/portfolio-category/portfolio-subcategory/portfolio-name What I have now: ...
0
votes
0answers
20 views

How to populate a Gutenberg select field SelectControl with option value from PHP array

For a gutenberg block, I need a select with a PHP array as options values. I'm not sure where to go. This array come from a CSV file To get array from this CSV i use this PHP code : /* Source File URL ...
0
votes
0answers
31 views

Curl error while creating user

I have a problem when trying to create users with authentication via plugin: "application passwords" curl -X POST --user "applogin:y530 8Uf9 OMSW sSsR Q0S8 zaqS" "http://...
0
votes
0answers
12 views

Wordpres category management

I would like to know, if it is possible to manage categories like how we do with atributes. I have about 500 categroy and subcategories and when I enter category section in admin dashboard, I see a ...
0
votes
0answers
11 views

Why won't wp_enqueue_script work within any plugin file?

I have a plugin, from which within one of the files I am trying to include a JS file the proper way: function inveroak_feed_search_enqueue() { wp_enqueue_script('inveroak-feed-search', ...
0
votes
0answers
15 views

Render page with specific id from functions.php

How can I render a page from functions.php with a specific page id? I tried something like this: $template = locate_template('page.php'); if ($template) { set_query_var('page', get_post_meta( 200 )...
0
votes
1answer
14 views

Updating Post meta (ACF field) from Feed

I'm trying to order my 'gyorshirek' posts based on the value of a custom field. I'm getting the value of this field from a json field. I created a basic function that is supposed to update this field ...
0
votes
0answers
14 views

wp_delete_user - huge overhead in Buddypress?

I am running a Buddypress Website with 8k Users and I want to create a fresh installation as a base for a new project. I do not want to touch the DB directly because I feel it's dirty and could ...
0
votes
0answers
10 views

I want to add member to account in ultimate membership pro

hope you are doing well. While reading this basically I have purchased Ultimate membership pro. I want to add an existing user to any existing users (who have purchased any package from the membership ...
1
vote
1answer
44 views

Show User's Current Time

I am developing a Plugin. I would like to display User's Time. I am using this code. date('g:i A'); But I am not getting exact time. I read this post. But I didn't get any solution. How can I Show ...
0
votes
1answer
12 views

How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query

I need to get the term of each post while running WP Query. I tried this inside the loop $term = $loop->get_queried_object(); echo $term->name; but I am still getting custom Post Type ...
0
votes
0answers
26 views

Ajax action has 200 status but response of No response data available for this request

I'm developing a custom plugin that implements an ajax-powered search form on a WordPress site. It runs a WordPress query and outputs the results just below the search box where a user types their ...
0
votes
0answers
15 views

How to remove dynamic-css

I want to remove dynamic css from header of my plugin. <style type="text/css" title="dynamic-css" class="options-output"> ... </style> I use this code for ...
0
votes
0answers
24 views

How to access wordpress from domainB which is installed at domainA

Use Case: I am setting up wordpress for one of my clients. The wordpress is setup at a domain like http://cms.domainA.com. This domain is on VPN which can only be accessed by using VPN and few ...
0
votes
1answer
24 views

How to save EXIF metadata in WordPress database?

I have a function that gets retrieves image EXIF metadata and displays it on attachment edit page. function wp_read_image_metadata_exif( $file ) { if ( ! file_exists( $file ) ) { return false; } ...
0
votes
0answers
7 views

Add a buttons inside WooCommerce order page to send order info vai API to the shipping company [closed]

I want to send order details directly to the shipping company directly from order page via their API, instead of filling info manually in their website. How to add a button next to order and when it's ...
0
votes
0answers
7 views

Woocommerce - Get Product's Child Category Name or ID [closed]

I am trying to get the child-category ID or Tag ID for products. The code below is able to get the parent ID only and not the child ID. I believe from the code below that '$order->get_items() '...
0
votes
1answer
9 views

Associate multiple email addresses with the same user account, so they can log in with either

Is there a way to associate multiple email addresses (2) with the same user account? The goal is for the user to be able to use their company email or personal email to log into a company portal - ...
0
votes
0answers
10 views

"Google listing & ads" plugin by woocommerce not working after update [closed]

"Google listing & ads" plugin by woocommerce stopped working after updating 1.7.0 version I've tried unistalling and reinstalling old version but it is not working showing same error.
1
vote
1answer
19 views

can i fetch a custom metabox data in another page or post type?

I need to fitch a metabox field data in another page , $headabouttitle1 = get_post_meta(get_the_id(), 'head_title1', true); this is how i fetch it in the same page , I need to fitch it in another ...
0
votes
1answer
11 views

Template for Custom Post for the EDITOR

I am attempting to make my custom post editor full page, like the Gutenberg editor. With no side menu or the meta boxes. I was thinking that in order to do that, I need to override the editor template ...
0
votes
0answers
20 views

WordPress File Upload Form Returning Null

I know this has been mentioned a few times but I'm running short of ideas, For some reason, my form won't upload any file regardless of size or type, I've checked my php.ini, my permissions everything ...
0
votes
0answers
7 views

what template is genesis 3.0 using for the non-home-page blog page? [closed]

I am trying to customise the blog page of the Genesis Authority Pro theme to the layout of Magazine Pro (my blog page is not the home page). I believe to do this I need to create a custom template, ...
0
votes
0answers
10 views

my featured image of wordpress are not showing in the front end though image are uploaded in media library

my featured image of wordpress are not showing in the front end though image are uploaded in media library . can any1 help. When i upload new image & set it as featured image it works but old ...
0
votes
1answer
15 views

Saving a Custom Post Type with a Meta Box results in a "Updating Failed" error

I have a Custom Post Type (Favourites) which I plan on using to talk about my favourite craft products. The meta box field I want to have is a link to an online store listing, so users can buy the ...
0
votes
0answers
11 views

WooCommerce Coupons restrict to amount of users

I really hope someone can help me on this one :) I’m using WooCoommerce with WooCommerce Subscriptions. 
I need to set the coupon usage limit to X amount of users instead of the total use. My problem ...
0
votes
0answers
11 views

How to add custom plugin data to the cart in woocommerce using custom button on product page?

I am implementing the custom Buy Now button in my plugin. I had placed the Buy Now button on the product page using this hook add_action( 'woocommerce_after_add_to_cart_button', '...
0
votes
1answer
16 views

Add version # to wp_register_style function

How do I add a version number correctly? I have checked wordpress codex but their wp register style function looks different than mine and I don't want to break anything. Here is mine ...
0
votes
1answer
15 views

How to connect android app with Wordpress website?

after a lot of search on the internet I found that to connect an android application with a wordpress website I have to use JSON API. In my website users are able to register or login to their unique ...
0
votes
0answers
8 views

Adding a location field to buddypress activity

I am trying to figure out a way for adding location to buddypress activity. I tried using "Geo my WP" plugin to add location to a custom post type but the problem is that activity is not a ...
0
votes
0answers
14 views

Template_redirect works, but headers aren't sent when checking via cURL

I'm creating a 307 redirect to maintenance page for when my site goes through maintenance. My PHP class is included in functions.php, and gets instantiated immediately. In my __construct, I call: ...
0
votes
1answer
29 views

Trying to turn the Edit function into a class to be able to use React lifecycle methods

In order to be able to use React lifecycle methods I'm trying to change the default Edit function created by @wordpress/create-block into a javascript class like in this simple test example: import { ...
0
votes
0answers
12 views

Multiple nested meta queries

This has been driving me nuts for days so if anyone can provide any sort of solution that would be lifesaving. I have a form that is querying posts (WP_Query), depending on the meta data. Form fields ...
0
votes
0answers
13 views

Pull products to Woocommerce store by url (Sites Taobao, 1688, Alibaba, JD, Pinduoduo, Shopee, Lazada)

I want to pull products from Taobao, TMall like sites For example customer search by link Girls plus cashmere Martin boots 2021 new autumn and winter children's second cotton short boots princess ...
0
votes
1answer
13 views

Why should I use get_template_directory() when include files?

When I include files in wordpress I noticed that include works fine without get_template_directory(). Include even works fine without parenteses. include( get_template_directory() . '/includes/front/...
0
votes
1answer
12 views

How can I show links for custom posts group by taxonomy current term and sub-term?

I tried to display post with links by sub term and group thouse posts and sub terms by parent terms. For example: Parent term 1 Parent term 1 Term 1 Post1 Post2 Post3 Term 2 Post4 Post5 Parent ...
0
votes
0answers
9 views

Problems with WooCommerce Register's form style [closed]

I'm new to web development using WordPress, and I have come up with an issue I'm struggling to figure out how to solve. I'm using WooCommerce, and I wanted to split the My account page into Login and ...
0
votes
0answers
8 views

Change meta viewport on desktop

I need help. I want to zoom out website like how we do with with browser (CTRL + or - ) . I need same effect. meta vewport not supported in Deskop browsers. css zoom and transform: scale is not like I ...
0
votes
0answers
19 views

Using Remove Action Hook in Plugin

I'm trying to remove a hook using the remove action hook in a plugin I'm working on. However, the code I wrote in the function.php file (child theme) does not work. If I directly comment the hook (...
0
votes
0answers
12 views

Infinite posts scrolling on the single page

I need to create the infinite posts scrolling on the single post page. But for now I have achieved only that the posts are loaded on click. Here is the code from the single page: <div class="...
0
votes
0answers
10 views

How can I display selected content from a seperate database in an Activity style widget?

So, I'm developing an app, and I'd like an option were the user can click a button, and the selected information is disaplyed in a widget sidebar or similar in Wordpress. A usecase would be if someone ...
0
votes
0answers
7 views

Change header image with editor profile

I'm editor in a blog, the template has an image in the header and I have removed it. Now there's the default image and I want to replace it but I can't contact the admin anymore. How can I achieve ...
0
votes
0answers
18 views

WP_Query for distinct meta values

Is it possible to construct a WP_Query in such a way that once a (ACF) meta value exists on a post in the query the subsequent ones cannot contain this value? For instance if I'm querying countries, ...
0
votes
0answers
13 views

COOKIE_DOMAIN chaos

I have website 1 (www.website.com) and website 2 (www.website.com/private I am using a plugin to set up single sign on between my other php site and Wordpress. This works fine on a subdomain (www....
0
votes
0answers
8 views

Display Child Pages if no child Exists Display Siblings

I am using this code to display child pages, but if there are no child pages I need to display siblings and have not been able to get it sorted. function childpages_shortcode_callback( $atts ) { $...
0
votes
0answers
27 views

Can only edit longer pages on phone, not on PC

I have written and edited many longer WP blog pages on a phone. But when I now try to edit them on a PC, the editor freezes or gives extremely long latencies (>10 sec.) between key press and effect....
0
votes
0answers
14 views

Is there a way to populate return in_array($GLOBALS['pagenow'],array( 'wp-login.php' ))?

The function below checks if the current page is the wp-login.php page. If yes, it avoids enqueuing styles or scripts. function is_login_page() { return in_array( $GLOBALS['pagenow'], ...
0
votes
0answers
5 views

Custom Product Bundles or Mix'n'Match with child items added to cart externally

Meal Service: This site has 6 available meals (products) that change weekly. I built a custom ACF options page so the site owner can group whatever meals will be available per week. This provides an ...
0
votes
2answers
12 views

How to identify and hide/remove an element from a WordPress page

I created my first WordPress website using Elementor and an all-in-one theme called Webify. Since I am new to WordPress and to website design, I've imported a demo website that comes with the Webify ...

15 30 50 per page