All Questions

0
votes
0answers
4 views

Tax exclusive if coupon applied else tax inclusive in items

I have setup taxes inclusive for all my items and filled MRP in price. But now I want to apply tax inclusive if customer didn't applied coupon i.e. buying on MRP. But when customer applies coupon I ...
0
votes
0answers
6 views

Add Product Permalink Before Order Item Meta

I am using the following code to add product permalink in woocommerce admin order page- function fpd_custom_order_item_values($_product) { $url = $_product->get_permalink(); echo '<p&...
-1
votes
0answers
11 views

Remove code html

Good morning to all, I have a problem with a plug in that inserts a double "buy" button on each product. To work around this problem, I have solved css for now, but unfortunately these do not remove ...
0
votes
0answers
8 views

How to import Reusable Blocks programatically?

How to import Reusable Blocks programatically? I would supply 20 or 30 .json files with Reusable Blocks and the theme admin would be able to use them in their posts or pages. How could I import them ...
0
votes
0answers
8 views

Filter woocommerce variation attribute values based on selected date

I am trying to make a product. This product is some sort of arrangement. The product with options should look like this: Choose date Choose breakfast location Choose drink location Choose diner ...
-5
votes
0answers
14 views

how I can show post when I'm select category in visual composer custom [on hold]

<div class="container"> <div class="tab-item tab-by-category home-tab-group" id="tab_life-social" rel=""> <ul class="nav nav-tabs home-tabs" role="tablist"> ...
0
votes
0answers
16 views

ACF don't save the selected value

firstly i created a select dropdownlist using acf that dynamically populate like this: add_filter('acf/load_field/name=chef', 'my_acf_load_chef_field'); function my_acf_load_chef_field( $field ) { ...
0
votes
0answers
15 views

Custom query for custom post type not getting correct post ID

I have written a custom query here: <?php $the_query = new WP_Query( array('post_type' => 'video', 'posts_per_page' => 10, 'post_status' => 'publish') ); ?> <?php if ( $the_query-&...
0
votes
1answer
13 views

SQL query generated by WP_Query is not the same what request echoes

given this code: $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'cat' => $cat, 'orderby' => 'date', 'order' => 'DESC', ...
0
votes
1answer
8 views

How can publish my bootstrap created table ( huge amount of data) on my word-press theme?

I created a bootstrap table which is interactive with data-tables also.I use jquery too.How can i publish this table on my word-press table (code is working ).Thank you... I just want to publish ...
0
votes
0answers
7 views

Theme crashes once activated [on hold]

I need help. TIA ! I'm using MAMP PRO 5.2. The theme I purchased installed just fine but once I activated it , it crashed the wordpress, displaying the message : the site is having technical ...
0
votes
1answer
25 views

How to edit a plugin's front-end in wordpress?

I am a newbie in the wordpress development scenario, I have installed a marketplace plugin (WCFM) for my wordpress based site. Now, I saw the plugin editor which allows us to edit the plugin's php ...
0
votes
1answer
15 views

Wordpress Security tools

Hi fellow wordpress developers or Web Masters. I would like to ask what are the tools you are using to secure your wordpress websites? Also, what are you ways to prevent wordpress plugin vulnerability ...
0
votes
0answers
7 views

How to query_posts in pre_get_post using a function and comparing that to correct time

I'm having problems get my pre_get_post to work properly. Right now, it shows up properly but I'm trying to figure out how to properly set a time limit that compares a post to the current server time. ...
0
votes
0answers
16 views

How to use WordPress hooks in add new page with the Gutenberg UI?

I would like to add a custom link to the Add New Page > Page Attribute > Below or above the "Template Field". Please check my screenshot: http://prntscr.com/o3pjut Before Gutenberg, I simple used to "...
0
votes
0answers
11 views

Function to make black and white favicon

I use this function: function add_favicon() { $favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico'; echo '<link rel="shortcut icon" href="' . $favicon_url . '" ...
0
votes
1answer
14 views

How save ContactForm7 data in a cookie

I am developing a WordPress theme that has a custom post type called 'Insights'. Then in single-insights.php the administrator can upload a PDF file so that the user can download it by clicking on a ...
0
votes
1answer
13 views

Form using admin-post.php gives 404 after submission

I'm creating a custom form for a wordpress page, and I'm using admin-post.php as my action. However, whenever I try to submit the form, I get a 404. Below is the code which outputs the form: ...
0
votes
0answers
10 views

Youtube video autoplay is not working in mobile, I am using featured video plus to add the videos to the pages/posts

I am using featured video plus plugin to add videos to pages and posts. And it works fine. But I found a problem. For mobile and tablets the autoplay funcionality doesnt work but only for youtube ...
0
votes
1answer
10 views

Spam pages hack? [on hold]

A few days ago I noticed a few blog posts on my site that were spam and I knew I had been hacked. I did a few things in an attempt to clean the hack (Wordfence deleting unknown files, securing the ...
0
votes
0answers
9 views

Elementor Pop-up Menu Help [on hold]

I'm using Wordpress elementor for the first time and just started messing around with their pro module. The popup for a full screen menu on mobile is showing up off screen. Anyone have any ideas? ...
0
votes
0answers
14 views

Using filters to add a link to the archive headings in Woo Commerce

In Woocommerce on the content-single-product.php template page, there is a woocommerce_shop_loop_item_title_link hook. What I am attempting to do is wrap the title in an a tag. The template out of ...
0
votes
1answer
15 views

how can i display children of my parent page in one of the children page (wordpress)

I'm looking for how display the children pages of a parent page IN THE CHILDREN i can display all the children only in the parent page like this <?php $args = array( 'post_type' =>...
0
votes
0answers
13 views

Updata Metadata WP Rest API

I am trying to update a metadata I created from the front-end with a click event. { "id": 1248, . . . "metadata": { "wishlist_array": [ "" ], . . . ...
0
votes
0answers
8 views

Missing content on page, seems to have happened recently but latest revision date says June 2018

Our front office recently realized one of our pages was missing all of its content. (Theme, navbar and sidebar, are all intact.) I check the page in WordPress and it shows the latest Revision was ...
0
votes
0answers
9 views

What plugin do I need to add a slideshow to a post? [on hold]

I want to add a pinned post that includes only a slideshow of all the images in a media library. How can I do this? I tried adding a plugin but I was not allowed to add it to a post.
0
votes
1answer
13 views

How do I delete a wordpress user from giant database?

The native wordpress delete users page is unable to load for us, as we have hundreds of thousands of user accounts that it queries and loads into a drop down menu every time the page is loaded. ...
0
votes
0answers
6 views

How to replace name of shipment method with another value in dashboard / order?

I've created a shipping method that fetches a servicepoint (location/store) when entering street and postal code. That works at the frontend. The shipment method is called DHL Sweden. When I go ...
0
votes
0answers
6 views

Allow users without publish permission to edit the post date when submitting for review

For some reason when you remove a user's ability to publish posts, it also removes their ability to schedule a post on the post edit page. From the list view of all posts though, you can edit the date ...
0
votes
0answers
8 views

Why do fonts look “doubled” on phone and tablet? [migrated]

I'm having this issue on all my pages in Elementor: Font: Abril Fatface. It looks fine, if I put "weight" to zero, but I need the title to look more bold, that's why I need "weight" at 900... But it ...
0
votes
0answers
11 views

WordPress site acts strangely when opened from Instagram bio link

I have a website using WP that I have built as a kind of social network with questions and answers. The problem is when I (it has happened to other people too) click the link on my IG bio that takes ...
0
votes
0answers
8 views

Voting system database connection

I am trying to implement a polls plugin in WordPress. I have to import previous questions and answers from previous polls existing in a database and implement new questionnaires and voting systems. I ...
0
votes
0answers
5 views

place menu in page other than the predifined places

I am working with FLATSOME theme. I want to add a drop down menu inside the row above slider and below the main av. The header builder only allow me to add main nav buy I want to add a custom ...
0
votes
1answer
12 views

Change Login or Logout text based on status

I'm trying to display text in a button in the header that says "LOG IN" or "LOG OUT" depending on the visitor's status. The button calls a slider action, so I just need to change the text displayed on ...
0
votes
0answers
15 views

Adding post_type filter on pre_get_posts gives 404

I have a basic WordPress query: $the_query = new WP_Query(array( 'post_type' => array('post'), 'posts_per_page' => -1, 'ignore_sticky_posts' => true )); But if I try ...
0
votes
0answers
7 views

Create one temporary permalink in wordpress for form

I have started a freight company and am using sub contracted drivers I am trying to add a Proof of delivery solution to the website. Ideally, I would like to create a temporary permalink which I can ...
0
votes
0answers
6 views

Variation price does not change in a variable product

Im struggling with this issue that I have a product which price should increase when choosing an additional attribute. In my case that is the third one. The problem is that nothing changes and I am ...
0
votes
0answers
13 views

Include _embed query param on /revisions endpoint?

Does anyone know if it is possible to include the _embed query param in the WordPress revisions endpoint? So something like this: http://example.com/wp-json/wp/v2/posts/215/revisions?_embed I am ...
0
votes
0answers
8 views

How can display image on woocommerce product page?

i already have code written but didn't know how can link my image with this function listify_cover( $class, $args = array() ) { $defaults = apply_filters( 'listify_cover_defaults', array( ...
2
votes
1answer
14 views

How to Add a Link to the Drop-Down User Menu in the Admin Bar?

I need to add a link to the drop-down user menu in the admin bar. Is there a hook or function for this?
0
votes
0answers
15 views

Recent Posts Loop repeats the excerpt on every post

So, I have this string to show recent posts on my page, but it the excerpt of each post is always equal the first post. what is wrong? see Blog section of my website query_posts( $args ); if ( ...
0
votes
1answer
14 views

Add Product Permalink in woocommerce admin order page

I am trying to add the permalink of product on woocommerce admin order page with this code: function fpd_custom_order_item_values($_product) { $url = $_product->permalink; echo '<p>'.$url....
0
votes
1answer
26 views

Change permalink structure

I changed the permalink structure from /%category%/%postname%/ to /%category%/%post_id%/ What url should I put in the .htaccess file? Thanks
0
votes
0answers
14 views

How to create a A-Z glossary

I am working on a plugin that lists all the available sites on our multisite, I have it working but was trying to find a way to navigate by letters or just create an A-Z glossary. <?php function ...
0
votes
0answers
8 views

WP Job Manager make Location field Google auto complete

I want to make job_location array use google auto complete. 'job_location' => array( 'label' => __( 'Location', 'wp-job-manager' ), 'description'...
1
vote
2answers
40 views

Get list of shortcodes from content

I need a list of every shortcode inside the content. Is there any way to list them? This is what I need: $str = '[term value="Value" id="600"][term value="Term" id="609"]'; So every shortcode ...
0
votes
0answers
5 views

How to update elementor javascript variable in the editor mode?

I have created a widget. But there is a js variable that i need to update. Say if change the value in the widget setting to 35px the javascript adds a margin of 35px. If the save the post the changes ...
0
votes
0answers
11 views

Special character Wordpress search problem

i am faced with the following problem when using Wordpress Search. If i create a post titled "Try Something", with body "Hello testing t&y thank you". If i now take a look in my db, i see that ...
0
votes
0answers
8 views

Auto search and populate fields using Gravity Forms

I have a product registration form which I set up through Gravity forms. What I want to do is import a list of products and product codes into my wordpress installation and somehow link this to my ...
0
votes
0answers
9 views

How to change content in a WordPress Post Banner?

I have a WordPress multisite and each of them have active pages and posts. In the banner of a post, how do I dynamically echo the theme’s name or part of the path (see example below), instead of the ...

15 30 50 per page