All Questions

1
vote
1answer
29 views

Rewrite Rule for default post type

I am using two post types into my site: a) Post ( default post type ) b) Program ( Custom Post Type ) I am trying to add '/blog/' string to default post type URL. If I am tying to do it from permalink ...
0
votes
0answers
24 views

Get the templete content by templete name in wp.

I have to show the selected templete content into the page programitically.
0
votes
0answers
6 views

Appearance menu boxes not showing all the pages in view all

I have created my pages in order. Now when I move in Appearance->Menu when I click on View All pages not all the pages are showing. How can I resolve that, how can I show all the pages that I have in ...
0
votes
1answer
22 views

Style post archive blog preview based on category

0 down vote favorite I have a page showing your typical series of small post teasers - images, excerpt etc which advertise properties for lease. I would like to have the ability to add a 'new' or '...
1
vote
0answers
21 views

How to add button to post page WordPress 5.x

How can I add a button to a posts page? what hook can be used to add a custom button I'd like to place it next to, or near, the "Publish/update" button, or modify the publish button for triggering ...
0
votes
0answers
15 views

Menu and widgets not showing on frontpage

Yesterday I amended a certain widget, but now all widgets AND menu AND footer doesn't show up anymore on my frontpage. I do not have this issue on the other pages. In meantime I have deleted this ...
0
votes
0answers
13 views

Wordpress wp_set_object_terms() not working fully with WooCommerce

My custom taxonomy (WooCommerce attribute) already exists and I am using the following to add a new term to the taxonomy and associate it with my WooCommerce product: wp_set_object_terms($product_id, ...
0
votes
0answers
14 views

My pagination is not working properly and on click it does not change its URL like page/2

<?php /* Template Name: Custom Identifier */ ?> <style type="text/css"> h1{ font-size: 30px !important; } .my-content{ width:100%; margin-left:5%; padding: 10px; box-shadow:0 0 ...
1
vote
1answer
40 views

Getting categories id for all products in cart

What I'm trying to do is to take the categories for products which are in the cart. Then check via some conditions what category id is and show different notice. So far I have this /** * Cart ...
0
votes
1answer
26 views

how to SELECT for the current post id?

i am trying to get and count the values of a meta key (rating) and then calculate the sum. but the following code get all of values in wp_commentmeta table but i want to get just for the current post. ...
1
vote
2answers
51 views

Does a core update 4.9.8 → 5.0 involve a database update (migration)?

And where do I (reliably) look for this kind of information? I find myself googling for 'wordpress changelog' on every other update... Background: usually I use a "skeletal" WP installation (seperate ...
0
votes
0answers
10 views

Shortcode of Custom Post Type Metabox Array

I have an Custom Post Type which dynamically creates 2 textboxes, one for date and one for description. In my single-template I use the following code, which functions perfect. But when I use it in a ...
0
votes
1answer
14 views

add_action not calling back to function

I am working on a plugin, but add_action doesn't call the callback. The code is as follows: require plugin_dir_path( __FILE__ ) . 'includes/class-network.php'; $distro = new Classnetwork(); ...
-1
votes
2answers
23 views

wp_query get data from advanced custom field in wordpress

I want to get the data from advanced custom field using wp_query from another custom post type: $title = get_the_title(); $the_query = new WP_Query( array( 'posts_per_page'=>9, '...
0
votes
0answers
13 views

ERR EMPTY RESPOSNE on ajax delete request in wordpress

I am trying to delete a post with REST api endpoint. evry thing is working fine on local. but on live(000webhost server) its giving error with no response text. http://mylivesite/wp-json/university/...
0
votes
1answer
16 views

Dropdown select filter and categories list

I have recently visited this website and came to know that it is running on wordpress. I have been looking for dropdown select filter (Banks Filter) and categories list as same as on that website. ...
0
votes
0answers
6 views

Chinabrands with woocommerce [on hold]

I'm not good in this so i would like to ask if there is any option to sync woocommerce orders with Chinabrands. I want to automate the process for Dropshipping.
0
votes
0answers
15 views

Theme suggestion? [on hold]

I am looking for a WordPress theme for the portal that I have to develop. It will have - Member registration - member register with some minimum information and can later update their profile. ...
1
vote
0answers
9 views

Want to create Custom Header based on Geo Location

I am having 2 header UK & US Header. I want to redirect the US header & footer based on US location. I am using Geo Redirection Plugin, but by using this plugin i can modifiy the URL ...
1
vote
1answer
20 views

WP_bootstrap_Navwalker_issue

I have put a navwalker in my bootstrap wordpress which gives me a fatal error Fatal error : Uncaught Error: Class 'WP_Bootstrap_Navwalker' not found in A:\xampp\htdocs\wordpress\wp-content\...
1
vote
0answers
9 views

Conditional Tags Based on Previously Viewed Posts

I was looking at the Conditional Tags Archive and was wondering if it's possible to show a widget depending on different posts / pages a visitor has previously viewed. For example, if I had a car ...
0
votes
0answers
14 views

How to add orders manually to woocommerce [on hold]

I'm working on a website for a customer who gets orders from call center ( runs ad on TV). The call center receives the customer info on the phone and sends them to him by the end of the day. Right ...
1
vote
0answers
12 views

async code or cron job?

could you advise me on what is the best method to deal with this case. I work in a task in which when uploading a file with xlsx extension I must process the information of this file and include the ...
0
votes
0answers
17 views

How to store colorpicker hex color using options API?

I wrote the following code, which works fine in displaying a hex value if its not set, or if its set already. I want to save the selection of the colorpicker, using the save button, but something is ...
0
votes
0answers
12 views

Timezone for Plugin

I'm using these two lines: $expires = strtotime( $_POST['expire_date']); if($expires < time()) to test the time in the name=expire_date form against GMT time. But no matter what I do my expire ...
0
votes
0answers
9 views

Dashboard and Front End working but Edit Page/Add Page give me a blank page

My WPLMS site and dashboard are working normally. However when I go to the pages and go to edit a page, it takes me to a blank page with no content and no error message. Editing course content ...
0
votes
0answers
20 views

wordpress not loading on localhost

I have a localhost website bm.ourdomain.local on our Mac machine (running AMPPS). It has an entry in /etc/hosts: <local IP> bm.ourdomain.local It has an entry in /Applications/AMPPS/Apache/...
0
votes
0answers
14 views

LEFT Join in post_clauses filter causing 502 error timeouts (column sorting)

I'm running a column sort in my posts listing page using LEFT JOIN on a custom table that records page views. You could say I am sorting by page views. Here's what my query extra pieces look like: ...
0
votes
0answers
33 views

Wordpress visual composer backend editor not showing

i have a problem with my wordpress visual composer. It's working in woo commerce during uploading of pictutes and content but not showing in page edit. When ever i try to edit page, it's just showing ...
0
votes
0answers
5 views

Woocommerce: Allow Offers and Purchases While Hiding the Add to Cart Button

I have only basic knowledge of wordpress/web development and need some help. I am developing a woocommerce site for a family member that sells very pricey items (think $20,000 or more). I want to ...
0
votes
0answers
14 views

connecting wordpress.com acount to self-hosted wordpress sites [on hold]

I have three wordpress sites all using the same theme. They are all self-hosted on the same service. They all have Jetpack (free plan) installed and running. When I log into my wordpress.com account I ...
1
vote
1answer
12 views

Remove website URL from wordpress website

Ok so I have searched and searched the internet and can't find anything. I created my new website on wix and I switched the website domain to wix but it still comes up on the wordpress website. I ...
0
votes
0answers
6 views

woocommerce - how to add custom field in one page checkout?

I can add custom fields to normal checkout pages of WooCommerce. But our company decided to try Woocommerce One Page Checkout. I wanted to collect additional information by using <input> text or ...
0
votes
0answers
6 views

Get current active section and its controls - WordPress, Customizer, JS API

I have a button (custom control) within a section, which on click must get all controls in the section. This is the click event for the button: wp.customize.control( 'reset_control', function( ...
1
vote
0answers
14 views

Send billing info from woocommerce checkout page to paypal checkout form

I have a theme using Woocommerce and PayPal Checkout. The checkout page in my theme has a form to input Billing Address info. My only method of payment is via PayPal Checkout. If a user starts the ...
0
votes
0answers
11 views

Adding additional information to Admin Order Preview

Looking at adding the actual shipping costs of an order to the order preview pop-up. I think we have to use add_action with woocommerce_admin_order_preview_end and maybe even using add_filter to ...
0
votes
0answers
6 views

How to change font size of admin panel in Wordpress 5?

How do I change the font size of the admin panel in Wordpress 5 ? I want to enlarge the text size in admin pages, specially comments page at: /wp-admin/edit-comments.php
0
votes
0answers
12 views

Error when jumping to an anchor on another page

I get the following error when a link on a page loads another page and jumps to an anchor on the new page: It jumps to the designated location but this error pops up. If I just have it load the new ...
0
votes
0answers
6 views

show tot reputation

I would show tot reputation in my profile (now show just single point earned) I use these plugin anspress + buddypress here my website, u can create un account and see thanks http://www....
0
votes
0answers
16 views

Divi builder injects its shortcodes in the rest api

We use Divi themes and builder from elegantthemes.com, maybe the most popular theme ever. We are using the latest WordPress and Divi versions. The divi shortcodes appear in the rest api, as you can ...
0
votes
0answers
14 views

Add fields to the top of widgets form

i have read this and create custom fields : How to add Custom Fields to Settings in Widget Options for all Registered Widgets? but i want to add this custom fields to the top of all other fields . (...
1
vote
2answers
29 views

Self deactivate plugins after an action occurs

I'm developing a WordPress plugin. I want to download a file from a server, then unzip and put it inside the main directory of WordPress after the plugin is activated. The process of download and ...
0
votes
1answer
8 views

Swap themes locally

I have a problem where my 'add new plugin' button doesn't work and it also doesn't appear on the normal menu. I searched online and the solution that is being suggested is swap theme to check if the ...
0
votes
0answers
7 views

How to handle 1000's of variations? [on hold]

I have a custom made suit site. Where user get to choose from fabric range to collar style etc. But I am stuck in variations. If I have 100 fabrics, 5 collar styles and button colors which are only 3 ...
-1
votes
0answers
25 views

How to echo inside the js file with wp_localize_script?

I have used wp_localize_script() to pass a variable to a javascript file. var countries = [searchresults.data]; The variable is getting passed but I want it in a js file like below: var countries = ...
0
votes
1answer
25 views

Best practices to handle multilpe roles and capabilities?

Consider a complex system made in WordPress with multiple roles and capabilities. Let's take a University website, for instance. A University website could have a capability to post news to the home, ...
0
votes
2answers
32 views

Query a custom taxonomy in a function to create an csv file

I a problem with getting the query for custom taxonomy to work in this function. The $filter is filled with data but the get_posts() does not use it? The query works without the tax_query and there ...
0
votes
0answers
14 views

Why WordPress cache is not available after reload page?

I try to put data into WordPress cache and get it after reload page. I test my code and find out that data added to cache currently but after I reload page this cache is empty and wp_cache_get method ...
1
vote
0answers
26 views

Gutenberg not all editor text translated

I just upgraded to wordpress 5.0 and not all text in Gutenberg is translated to my website's language German and stays in English. I already tried disabling all my plugins and switched to default ...
0
votes
1answer
10 views

My WordPress site made using softaculous stopped working after moving files out to root folder

I have an existing HTML website on domain name Tarkarlinext.com. In cpanel file manager, I have html files in public_html folder and site continues to run. One day, I installed WordPress script ...

15 30 50 per page