All Questions

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

Exclude post_excerpt and post_content from WordPress admin search query

I am trying to exclude post_content and post_excerpt fields from WordPress admin search, since my database has grown up and every time I seach for a simple keyword, I have to wait for many seconds, ...
0
votes
1answer
17 views

Website load twice (half load first) then back to load from scratch [closed]

I need to consult a serious issue in our website i need to confirm is that from server end or user end. its not clarify yet i ask from hosting end but they said its not from server end. we used cdn as ...
0
votes
1answer
14 views

Wordpress plugin blog creation

I'm trying to create a custom plugin for my website. class SoaneNews { function __construct(){ add_action( 'init', array($this,'pluginprefix_setup_post_type')); } function ...
0
votes
1answer
42 views

Adding new divs with custom classes to products on WooCommerce shop page

In a custom Wordpress theme I need to display product image and product summary side by side on the WooCommerce shop page, so I am trying to add new divs with custom Bootstrap classes; I used ...
-1
votes
0answers
8 views

myCRED block pay for an order in all categories, except in one

can anyone help to modify these code? I want to block the option to pay for an order in WooCommerce using points in ALL categories , except in one... Hier is the original code-snippet: /** * Block ...
0
votes
1answer
20 views

Want to hide some categories from the categories meta box in the post editor for the two specific user roles

Recently, I am customizing the COLORMag theme in WordPress. I want to make my site as a multi-author website where random people will register and write. But as my theme's homepage shows all the posts ...
0
votes
1answer
28 views

WooCommerce fails to apply validation to checkbox input

A WooCommerce site is being used to accept player registrations for a sports program. To register, a child's guardian must fill out certain fields and also agree to terms. The fields that need to be ...
0
votes
0answers
16 views

Query distinct years in a category

I'm building out a custom archive widget that displays a select dropdown of months for each year. How can I extend this query to to pass $categories[0]->term_id? This is my query so far... $...
1
vote
0answers
13 views

`rest_user_query` can't access post author in post edit screen

I'm trying to modify the user dropdown in the post edit screen to show only (a) the current user and (b) the current author of the post. I can't do this using wp_dropdown_users_args because the meta ...
0
votes
1answer
13 views

Custom page with WP Header showing Page not found title

I created a custom page to show data from the DB for an intranet site I have created. I used the following define('WP_USE_THEMES', false); require('../wp-blog-header.php'); get_header(); I read ...
-2
votes
1answer
17 views

There is a page on my website that doesn't show in the Pages section of WordPress

I am able to access the page when I type the URL, but the page doesn't exist in the WordPress pages section.
0
votes
2answers
18 views

Change links automatically to affiliate links

My goal: I want external links to shops I'm affiliated with (for example amazon) to automatically get the affiliate ID attached to it. Example: link I put in my blog post editor https://www.amazon....
1
vote
1answer
16 views

Use custom metabox to update automatically a post after a given date

I have a custom post type that will manage some jobs positions. I will implement some custom metaboxes that will hold the extra information about the jobs position that will be inserted like typology ...
0
votes
0answers
13 views

How to add additional information to order [closed]

Good evening, I want to add some extra date to order. In functions I cant add add_action('woocommerce_checkout_update_order_meta',function( $order_id, $posted ) { $order = wc_get_order( $...
1
vote
0answers
43 views

gutenberg add classes to list items

how can I add a class to li elements when creating block templates? I get to here: array( 'core/list', array( 'className' => 'list-unstyled h5', 'li' => array( ...
-1
votes
1answer
122 views

Modify query with complex order

I create 2 custom database tables and 1 custom post type. After post creation i fill custom databases with data. This relation holds shop data. wp_post hold main data (mainly title) and connect with ...
-1
votes
0answers
40 views

Show registration form woocommerce [closed]

Do I need to activate the registration to see the account creation form in woocommerce? I have noticed that I have only the login form on the account page if an user isn't logged id, but there isn't ...
0
votes
0answers
40 views

Errors while using ajax from external wordpress page

I am trying fetch WordPress user data from an external page within same domain using ajax.The problem is i am getting errors which contain the user data and source code from one of my plugin. here ...
-1
votes
0answers
15 views

Show product items intividually in backend edit order [closed]

We have an e-shop and we want to sell subscriptions locks & devices. The subscription is monthly or yearly, we have an IOT, locks open via mobile application that is fed by hook order_status ...
1
vote
1answer
21 views

How create a role with admin capability less 1 or 2?

I've created a new role and I need to give this role the full permissions and capability of an admin less create new admin user and edit plugin/themes. Is possible recall all and remove only the 3 I ...
0
votes
1answer
19 views

When changing background image of my website, it goes from high quality to low

I recently started optimizing my site and my background image was too big, so I decided to lower the size abit. Later, I went in to the Additional CSS tab and changed the body and header background ...
0
votes
1answer
28 views

Show scheduled posts in loop (but don't link to them)?

Is there a way to show scheduled posts in the regular loop but have them not link? I'd like to show that they're coming soon. This code makes them visible, but you can click into the post, which I ...
0
votes
0answers
17 views

Dynamically change prev next navigation within custom single post page

I have a custom post type with 3 custom taxonomies with it as follows: Object Gallery Community Category I have 3 post pages, one for each taxonomy, and filters within it. So I can see objects ...
1
vote
0answers
27 views

Accessing user Meta data via REST and backbone

I'm writing a plugin to allow users to update information stored in wp_usermeta. I'm trying to use the Backbone JavaScript client with REST. I have the HTML code. <div id="container">Loading......
0
votes
1answer
19 views

How to grab category thumbnail image from an individual products WooCommerce product category during product loop?

I am struggling to find a method that works in my instance when looking through previous relevant articles. I have been able to successfully show the category name, however when I try change the code ...
0
votes
0answers
13 views

Add new post with API from another server

I have a wordpress site on a domain and a script for archiving documents on another server. When this process is finished I need that script to create a new post with some info on the wordpress site. ...
0
votes
2answers
26 views

How to add badge “new” to the post title which are showed in recent post widgets in wordpress

I want to add a "New" badge to the titles of recent post's widgets. whenever I add any new post from that time to 5 days this "New" badge should show after that it should disappear. this badge is a "...
1
vote
1answer
15 views

Allow Contributor to edit published post and filter by page id

I'd like to give contributors permission to edit only some of their own published pages. I can use the following if I want to allow them to edit all of their published posts. How do I filter it ...
0
votes
0answers
16 views

Edit woocommerce_product_archive_description using hook

I want to customize the category description in woocommerce. I see that the hook is woocommerce_product_archive_description, but I'm not able to get the category description,I will get the product ...
0
votes
0answers
16 views

Set max and min number of letters/ characters limit on xprofile fields?

I've been trying to set max and min limit on the numbers of letters user can add to their xprofile fields in their BuddyPress profiles, I tried all coding in this web site nothing worked , for ...
-2
votes
0answers
21 views

Anyone knows a way to create a slide with thumbnails aside like the picture below? [duplicate]

It is a hard thing to explain, so i will provide an image. I am using DIVI builder and was wandering if there is a slide tool for wordpress to achieve my goal. As you can see, i need to slide the ...
0
votes
0answers
18 views

Implementing URL JSON API Data into Website

I've recently been messing around with my own Game server, and I want to implement a status page on my website, so if the game Server ever goes down players have a place to go to find out what went ...
-2
votes
1answer
43 views

WP_Query with LIKE returns strange query

IN works quite fine for comparison though array( 'key' => 'customdata', 'value' => $arraydata, 'compare' => 'IN' ...
0
votes
0answers
19 views

Issue to display Permalink (ACF Relationships in Custom Post Type )

I use the following code to display links to the first post type(location) in the second post type(doctor page) But this code will output the link to the page we are on(doctor page). And the location ...
0
votes
0answers
17 views

If a plugin is activated, but immediately self-deactivated, is it expected for the message 'Plugin activated' to be displayed?

I have built a small custom plugin. In it I have added PHP code to check if the current WordPress version meets the minimum required version. If not, my plugin self-deactivates (see code below). ...
0
votes
0answers
16 views

Modify filter condition to “AND” instead of “OR” for JetSmartFilters [closed]

I'm trying to modify the conditional logic of JetSmartFilters to "AND" instead of the default "OR" for checkbox filters. Meaning that if 2 checkboxes are checked, it should filter for products that ...
0
votes
0answers
18 views

How to add a custom CSS class to a row or cell in the admin plugins table?

To the admin plugins table, I've added a custom column, but haven't inserted any data yet (screenshot; see code below). With PHP, is it possible to add a custom CSS class to a particular table cell, ...
0
votes
1answer
30 views

How do I stop plugins and themes from getting updated in a new plugin?

I found this 2 filters to add in my functions.php of the Theme: add_filter( 'auto_update_plugin', '__return_false' ); add_filter( 'auto_update_theme', '__return_false' ); But I need to do totally ...
1
vote
0answers
28 views

Redirect custom post type from one domain to another domain

There is a custom post type by the name of code parked on a domain: sample.com. The redirect of the whole custom posts of code CPT to the custom posts of code CPT of www.someanotherdomain.com ....
-1
votes
0answers
17 views

display product delivery date based on order time

we need to display product delivery timeslot based on cuystomer order time If the order is placed between 12 Midnight to 5 Am the slots can be as follows for the same day and the same timing for the ...
0
votes
1answer
24 views

How to select a parent category and show the children to choose in another select?

How to select a parent category and show the children to choose in another select? this is the code (parent taxonomy) <select> <option value=""><?php esc_html_e('Selecciona País', '...
0
votes
1answer
27 views

Import 2000 posts from one website to another

I need to import 2000 posts from one website to another. Posts doesn't have any custom fields. We need to import title, content, featured image, slug and language. For language I am using Polylang ...
0
votes
2answers
23 views

Ajax in plugin fails - but only on one blog - no idea why

this seems hard to understand. I created a plugin, and it works fine on different installations of me and a few other blogs. But on one blog of someone else it fails. After getting through debugs and ...
1
vote
1answer
16 views

Dynamic loading of Archive content based on custom taxonomy term name

Context I've created my own custom taxonomy called kernal-category using the CPT UI plugin. This taxonomy is hierarchical and will have a large number of secondary, and tertiary categories. ...
1
vote
0answers
11 views

Update old Post image metadata to 'thumbnail' wp_attached_file

I am updating a very old WP-based website that was created prior to WP use of "featured images" aka thumbnails and the name of all post images are contained in a custom meta-field called "Image" (...
0
votes
0answers
7 views

Attach social account with wordpress account [closed]

i am connecting my wordpress blog with an android app , i just added firebase authentification to the application and it's working great and people can connect with their social accounts . What i ...
0
votes
0answers
20 views

Modifying category order

I am working with a directory style wordpress theme that displays categories in masonry style columns with their posts listed under each category title. The categories are appearing on the front page ...
0
votes
0answers
14 views

PHP Warning: A non-numeric value encountered in .. /public_html/wp-content/themes/podcaster/functions/pod-theme-functions.php on line 180 [closed]

This just showed up on my site. Im new to all of this. Unsure how to address to fix it. Theme author, no response. Been running this theme for 6 months and it has a few other bugs but they seem to be ...
0
votes
1answer
20 views

Convert a string into a decimal number for use in query

I have a meta box where a 'Case Result' CPT can be assigned a monetary value (e.g. $60 Million). I need to convert this into a decimal number for use as the meta_key in WP_Query. I understand how to ...
0
votes
1answer
17 views

How to change src to data-src for iframe inside WP content?

I need to change src to data-src for iframes inside Wordpress content and add class lazy. I was trying this: function iframe_image_lazy_load($the_content) { $thecontent = get_the_content(); ...

15 30 50 per page
1 9 10 11 12 13 2017