All Questions

0
votes
1answer
34 views

To display the category of a specific custom post type

I apologize for my English, but I am French. In my custom search page I display the results of my custom post type and everything is good. Only, I would like to display above the custom post type the ...
0
votes
0answers
22 views

How to override WooCommerce Order Item Meta with data from Cart?

I have the following function that is overriding some of the values that are saved to the Cart and Checkout, via the YITH Bookings plugin. Essentially, I have overridden the Duration field with my own ...
-1
votes
0answers
10 views

How to repeat meta key? [on hold]

How could I repeat meta_key and rename one of them? add_action('add_meta_boxes', 'change_meta_box_titles', 999);
0
votes
0answers
13 views

How to select the parent category for child categories?

I would think if I select a child category, that the parent category would automatically be selected (with no choice to deselect the parent), but it's optional. Looking at how Wordpress sets up this ...
0
votes
0answers
18 views

Google map is not displayed in some browsers in wordpress site [on hold]

I developed a website using WordPress. I added a Google map functionality in it. I can see the map there but my client is unable to see the map. The error is maps.google.com's server IP address ...
0
votes
0answers
12 views

Wordpress Website Layout Width Changed [on hold]

I was using plesk panel for creating sub-domain and copied the sub-domain's folders into main domain folders accidentally. Afterwards main domain's layout width changed, i tried to fix it via wp panel ...
1
vote
0answers
14 views

Change the displayed shipping total in WooCommerce [migrated]

I need to change shipping price programmatically: <?php $percentage = 50; $current_shipping_cost = WC()->cart->get_cart_shipping_total(); echo $current_shipping_cost * $percentage / ...
0
votes
1answer
9 views

WooCommerce registration password field not displaying

For WooCommerce registration form we only have one email field and I want to add password fields for this. I have tried to find online help but there are few support pages only for repeat password ...
0
votes
0answers
10 views

Convert any video formats to MP4 - PHP/WordPress [on hold]

As except MP4 format, browser is not supporting other formats. I have heard about FFmpeg but how it works in my localhost that doesn't know! So is there any plugins or any library available that ...
0
votes
1answer
13 views

How to have different background image based on post category

I have below piece of code in style.css file (website : https://askpuzzle.com) I am looking for option to have different background-image for different post/question category. .question-content-...
-1
votes
2answers
12 views

how to add fa fa icons customize menu using wp_nav_menu function?

how to add fa fa icons customize menu using wp_nav_menu function? wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'footer-menu', 'menu_class' => 'quick-...
0
votes
2answers
22 views

wordpress walker add class to submenu a href

I am having some troubles with my wordpress walker code. I know it's possible to add a custom css class manually via the admin menu section. But what i am trying to achieve is to get this done ...
0
votes
1answer
17 views

How can we create our own formatting style?

When we write any new post we get text formatting options like Paragraph, Heading 1,.... Heading 6 and Preformated. How can we add our own style there. For example I have below css style that I apply ...
0
votes
0answers
11 views

gallery with post category and custom fields

I'm trying to create a YouTube gallery where i use Posts to get info of the iframe and Feature image. I've built the following gallery: <?php global $post; $args = array( 'posts_per_page' => -...
2
votes
1answer
34 views

How can I calculate the total number of categories at different hierarchy levels?

I'm trying to make a category counter, but it's not really working. I want to have a common counter of all categories (1168), which I would later display. For example: 1 category is the first level 6 ...
0
votes
0answers
21 views

extra comma is appearing after shortcode attribute while creating custom gutenberg block

I have created a Gutenberg block which returns shortcode in RawHtml component but while returning dynamic shortcode in edit() function it gives extra commas appending in the shortcode, can anyone ...
0
votes
0answers
12 views

Include ElementorPro css into Wordpress custom page

I have created a custom page on WordPress, I have just copied page.php and added my slug at the end of page.php so my custom page is page-my-custom-page.php. Inside my custom page I have a form with ...
0
votes
0answers
8 views

Woocommerce price based trial subscription

I want price based trial in woocommerce subscription and after that subscription plan will go on. means instead of free trail I want price based trial in woocommerce. Also i don't want sign up fee as ...
0
votes
0answers
14 views

Show categories not in gallery post format

I want to show all blog categories that aren't of type gallery. My code almost works but if I have 2 posts in the same category the category is shown twice ie: If I create a category called 'news' ...
0
votes
0answers
9 views

Disable “Tips” popups when writing new post [duplicate]

How to disable "writings tips" when creating new post? This is first tip: Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks ...
2
votes
1answer
17 views

Create custom tab in WordPress 5 media upload

Can someone help me create custom tab in WordPress media library. With WordPress version 4 i used to media_upload_tabs function to build that nice work. But now, in WordPress version 5 the function is ...
0
votes
0answers
9 views

Create archive from multiple taxonomies

My website https://javabgo.com has two taxonomies in job_listing post type. job_listing_category job_listing_region I want to create an archive from two taxonomies. Like this: https://javabgo.com/...
0
votes
1answer
10 views

Woocommerce new shop page

I would like to have a page like page.php to display the content of the shop page. How can i do it? I copied everything from woocommerce/archive-product.php in to page.php but nothing is beeing ...
0
votes
0answers
9 views

Display payment form outside checkout

I am currently working on a WooCommerce store that has specific requirements in regards to checking out. The process is as follows: User orders a product through regular WooCommerce checkout User ...
0
votes
1answer
12 views

Get all user meta_keys and then group users by matching values

One of the plugins I am using generates user meta from our AD. One of the keys is the user's Manager. As many users will have the same manager, I want to be able to group all users. I was trying to ...
0
votes
1answer
14 views

wp_editor not rendering the shortcode

I have created an options page and have added wp-editor input in that. While rendering the output of that, it doesn't render the output of shortcodes added into it. It just renders shortcodes as text. ...
0
votes
0answers
4 views

OMDB Api Jquery Autocomplete render problem [on hold]

I use omdb api to list the movies and used ajax inside ajax while doing this but having trouble doing rendering. What I want to do first is to list the movies with http://www.omdb.com/?s="movie-title ...
0
votes
0answers
10 views

Is this best practice for Dynamically adding items to WordPress menus?

Is there an easier way too add this functionality to the menus page, instead of using the following code? Another words a different filter/hook/action that will make it, so I don't have to write ...
0
votes
0answers
7 views

How to create a manage user page for a specific role in wordpress admin area?

I need all controls like Add/Edit/Delete and pagination as well. $user_query = new WP_User_Query( array( 'role' => 'Owner' ) );
0
votes
0answers
12 views

How to Select post parent for CPT from another post type?

I'm developing a Sports website, covering cricket football, etc. The goal is: .pk /cricket (Landing page) .pk /cricket/ipl (IPL Landing Page) .pk /cricket/ipl/year (IPL Landing Page by ...
1
vote
1answer
11 views

Add Products to user's ID Woocommerce

I have made an REST API for synchronize user's cart item to web view to android view. I have used CoCart WP plugin Here are some scenarios: If I adding product from website I can get user's cart ...
1
vote
0answers
9 views

How to bypass maintenance mode with external cron?

I'm using crontab to run a php script loaded with wp-load.php with absolute path. However, when I go to maintenance mode, the file can't run. I'm using Coming soon plugin. Is there a way to exclude ...
0
votes
0answers
10 views

hpw to remove add title from the new-post.php [duplicate]

i want to remove the add tittle from add new post. user can able to add only content, kindly help me on the same. Thanks in advance.
0
votes
0answers
17 views

Excluding terms from next_post_link when post is in more than one category

I am working on a art gallery template that has a custom post type of "paintings". Each painting can be in a different custom taxonomy category "paintings-category" such as "studio", "plein air", and "...
1
vote
0answers
15 views

Bulk append custom field to post content

I want to bulk append my custom field named 'LINK' (with data like 'http://domain.com') to the end of the post content, so I can go back to using a standard theme with no support for custom fields. ...
0
votes
0answers
12 views

Redirection Plugin: Change permalink structure to remove date, want to retain and pass query strings (?utm_)

I have changed the permalink structure from /%year%/%monthnum%/%postname%.html to /%postname%/ I have added the following regex rule to the Redirection plugin: Source URL: ^/([0-9]{4})/([0-9]{2})/([^...
0
votes
1answer
13 views

Strip all HTML tags from product content and resave

My client has loaded about 500 products into Woocommerce, but has inadvertently pasted in a stack of extra tags into the product description- divs and spans etc like below: <div class="summary ...
0
votes
0answers
14 views

Homepage rewrite rule

I'm trying to display a product tag archive page (WooCommerce) as my basic-main-root domain (mydomain.com). It can be done with the 'shop' page (via WordPress front-page settings) - which is the same ...
0
votes
0answers
10 views

How do I set the included landing page as home page using a custom theme?

I feel that this should be very easy to fix, and most people know about how to do it, but for some reason I couldn't manage to find questions in the internet about this. The problem is: I've tried ...
4
votes
1answer
22 views

RSS for Pages Instead of Posts?

I'm trying to set up RSS. However, all the pages on my site are pages, not posts because the SEO is better (all my content is relevant regardless of publish date). My RSS feed isn't working right ...
1
vote
1answer
14 views

Working with Next and Prev links in Single Taxonomy Templates

I am building an art gallery website using a custom post type "paintings". There is a custom taxonomy for categories called "painting_cat" where it can be "studio", "plein air" etc., and another ...
0
votes
0answers
42 views

WordPress changes URL on admin page

We have 2 projects. https://host/ - first (on Node.js), https://host/modules/ - second (on WP). Before that nginx stays as reverse-proxy. When I'm on page 'modules', everything is good, but when I go ...
0
votes
0answers
15 views

On billing country change in the checkout page, re-total the cart using appropriate currency

I'm not very experienced, digging this for days now, running out of solutions. Please help :) I have a two-languages(=two currencies) website using WPML. Both currencies are allowed on both languages,...
0
votes
0answers
13 views

profile_update hook does not fire from front-end

I'm using BuddyPress to allow users to log in on the Front end. Once logged in, they can click on 'My Account'. On this page they can upload avatars, edit their account information, etc. When I ...
-2
votes
0answers
23 views

Adding black borders with rounded edges to video [on hold]

been trying to get my head around the video shortcode. We are hosting the video localy. I found some css I wanted to try. .video-mask{ width: 350px; border-radius: 10px; overflow: ...
-1
votes
0answers
9 views

What libraries are available to connect a Python web app to communicate with WordPress via the REST API?

I have a python web app, and I would like to connect it to WordPress via the REST API. The app will need to communicate in two directions (i.e. the app will both need to send and receive information ...
0
votes
0answers
26 views

Filter to APPEND nofollow to rel

I am trying append nofollow to add external links. If a link does not have a rel attribute, rel="nofollow" will be added. If a link already has rel="nofollow" nothing will happen, and if a link has ...
0
votes
1answer
17 views

Broken pagination links on WP 4.9.10 blog pages

We noticed a weird issue on our WP 4.9.10 blog pages when going to 1st page. Right now we can go to 2nd or 3rd page by clicking the page numbers but saw that it gives 301 code when going to 1st page ...
0
votes
1answer
23 views

How to add_filter only when content is not empty?

Im trying to add filter but only when the_content is not empty. So I was trying do something like that: <?php $thecontent = get_the_content(); if(!empty($thecontent)) { add_filter('...
0
votes
1answer
7 views

Woocommerce: Display an image on Products from a Specific Category?

Does anyone have code that can be added to functions.php that will allow me to display an image only on products that belong to a specific category? Preferably I'd like it to display over top of the ...

15 30 50 per page