All Questions

0
votes
0answers
26 views

Translating WP query into to SQL query

I have very complex wp query and I want to use sql query instead of this. Is there any way to translate wp query to sql query. I am thinking that I will have a better control over sql query as the wp ...
0
votes
1answer
23 views

Add function to head “no product found”

I build my proper shop with ecommerce, and I'm beginner in development, I know correctly the CSS/HTML but JS he's not my tea cup... Actually, I want to display some products randomly in my "...
-1
votes
0answers
18 views

Unable to access WordPress admin dashboard

My WordPress site under reference was hosted on GoDaddy that allows to access admin dashboard either through username, password created while installing or through WordPress.org username, password. I ...
0
votes
0answers
16 views

Explanation for Elementor Code

I am trying to have use wp_locatize_script for the elementor widget. I am confused with the method to use. I want to pass a php variable to javascript. If i am using a script file the method has to ...
0
votes
0answers
16 views

Remove post name of custom WP_Query when using in pagination?

Is this possible? I am trying to get pagination working on my pages and single pages. It seems like it's working, as it recognizes how many pages there are and shows the URL. The problem: the URL is ...
0
votes
0answers
10 views

Illdy theme turn text to Bold in another page

I'm using Illdy theme (https://colorlib.com/illdy/). First step, I developed the front-page. All text had the correct font styles. Next step, I'm developing the other pages. But I had a problem: all ...
0
votes
1answer
22 views

Update or insert meta key value - On Duplicate key update

I need to bulk update some meta descriptions and have found that some of the posts don't have them so I need to do an update or insert query. (Once I get this query right I will be creating a temp ...
0
votes
1answer
22 views

Don't print customizer styles when no setting has been used

I'm adding some options to a theme through my plugin, I want to change this theme styles and I'm almost there... Now I need to know how I can hide the <style> tag when no settings are changed (...
0
votes
1answer
17 views

WordPress CRON job working when reloading the page

I'm Trying to scheduling wp_cron job in my website to send email everyday without opening my website but this is not happening. This work when user come to the website or reload a page. Here is my ...
0
votes
0answers
21 views

Accessing an external database

I manage a web site for a charity. We are in the process of moving from WebPlus (no longer supported by Serif) to WordPress. Once the move is complete I would like to introduce a database of members,...
0
votes
1answer
12 views

Shortcode and WP query using category attributes

I am trying to create a shortcode that shows the results of a custom query (calling menu items) for a takeaway business website. I have tried to get category attributes to work so that on the home ...
0
votes
0answers
9 views

Custom WPBakery elements not displaying in WP admin

I'm creating custom elements for WPBakery. I have a folder called vc-elements which contains two files: hero.php text-image.php On the WordPress admin side, I want both elements to be visible. To ...
1
vote
1answer
21 views

What does the author_nicename parameter do in get_author_posts_url()?

I was looking at get_author_posts_url() which takes the user id as a param and returns a URL. It has an optional second parameter $author_nicename. get_author_posts_url( $author_id, $author_nicename )...
-1
votes
0answers
12 views

My Account navigation not displaying in other languages than EN

Baseline ; I'm working on a legady project where they used WPML + Woocommerce plugins. They have 5 languages. The default one is IT. They made translations of My Account page and inserted the ...
0
votes
1answer
20 views

How to create meta fields with more than 1 relation?

I am creating a recruitment plugin. There's a custom post type called opening, and it has a metabox which displays a select field with a list of candidates(each option's value is the candidate's ID as ...
-1
votes
1answer
27 views

How to check if the postID is in an array? [on hold]

In Wordpress, I am trying to check through an if else statement if the post is of a certain ID as follows: <?php if ($post->ID == array(224,222,583,645,203,11,639,228,226,230,634,615,625,214,...
-2
votes
0answers
18 views

How to set a featured post for WP Rest API? [on hold]

I purchased an theme from Envato. There is a special section for featured post, but how to feature a post for JSON API? Please Help me
0
votes
2answers
25 views

i do not see the “site url and home options” under Wp_Options (phpmyadmin)

I wanted to show you this issue. This is happening first time with me in my 10 years career, I have cloned many sites to another domain in past but this is for the first time when I do not see the "...
1
vote
1answer
19 views

How do I get a list of all categories that a given user has written blog posts for?

I need to retrieve the name of all the categories that a given user has published posts for. If I can also get a URL for the archive of that cat for that user only, this would make me very happy. How ...
0
votes
0answers
10 views

How to Override Global Style Settings for Individual FAQ? [on hold]

Is there any FAQ Plugin available, where we can add Global and Individual styling for faqs?
0
votes
2answers
195 views

Refactor create_function

I'm getting several create_function is depreciated errors from a plugin as the result of a recent WP upgrade to 5.2. The plugin is no longer supported which means I need to refactor the code myself. ...
1
vote
1answer
23 views

get current product name in functions.php

i create a button in a current product page after woocommerce_single_product_summary i would to get information about the current product ( for example name and price) and through the button send an ...
0
votes
3answers
31 views

add_action in wp_head accessible from class

Given this code: class test_class { function greeting() { echo 'Howdy! Test is successful!'; } function greeting_head() { //Close PHP tags ?> <?php ...
1
vote
1answer
15 views

Sorting Tags by Slug Value

In wordpress the tags are display alphabetically by default. How can I sort the tags by slug value and keep that order in the front end?
1
vote
0answers
12 views

Wordpress every page is 404 not found including admin resources

Haven't changed anything on my wordpress in about a year. Suddenly every page is 404 not found, including the admin dashboard. Any help much appreciated.
0
votes
1answer
25 views

WPAdverts - How to limit form submission 10 per month

I currently use wpadverts plugin and wants to limit the submission to 10 submit / month. How can I do that? I think I need to make a new row like "form_submissions" in "wp_usermeta" and store every ...
0
votes
2answers
12 views

List all ACF field values across every post on one page

I used an ACF repeater field for data sheets/instruction manual download links of products in woocommerce. There's 50 products and each has 1 to 4 download links on their product page. I've been ...
0
votes
1answer
22 views

how to do Thematic like this website using wordpress?

i'm building a wp site about nuclear conference, and want to make this "Thematic Areas" like this site, when clicking on any "thematic" it will popup in same home page.. the link of website:...
0
votes
0answers
23 views

wordpress form not saving or updating

i have been looking for a bug in my plugin am working on for days now and i haven't gotten any explanation that can solve my problem. the objective of the plugin is to save an array of options to the ...
0
votes
2answers
20 views

How to display singular_name of custom taxonomy?

I'm displaying list of term from each taxonomy assigned to custom post: <?php $taxonomies = get_object_taxonomies( $post ); foreach ( $taxonomies as $taxonomy ) { the_terms( $post->ID, $...
0
votes
0answers
20 views

Numericals in my URL

My URL looks something like this: https://agencypedia.com/?llocs=jaipur&lcats%5B%5D=169&post_type=listing This is because of the latitude longitude thing in the theme. How do I fix the URL?
0
votes
0answers
31 views

WP_User_Query Search Multiple Keywords from a Multi-Select Field?

My code below works to list a single user when I ask to search for a single username; however, I am unable to list multiple users when asking to search for multiple usernames. Here is a brief ...
0
votes
0answers
15 views

Custom theme index layout not displayed correctly

I'm making a custom theme that I'm planning to sell. I'm reading some guides about themes creation, I have already experience with wordpress but this time I want to make a nice theme. I'm facing a ...
0
votes
1answer
22 views

How do I return all terms from multiple taxonomies?

I need to generate a sorted array of all the terms within a set of (six) taxonomies (custom tags) for a custom post type without any duplicates (of which there are likely to be many). Is this ...
1
vote
1answer
17 views

How to allow your custom widget as block in gutemberg editor

I would like to add a widget in gutemberg as block like this : Is there a way to do it instead of using a shortcode ?
0
votes
0answers
11 views

Initializing rest endpoint issue

I'm setting up a plugin to list a series of WooCommerce products. Sketched all structure and I find that the endpoint isn't being created and can't figure out what's wrong here. Plugin file <?...
0
votes
2answers
29 views

Adding regular php file to site

How do I create a page(in wordpress theme folder) so that it can be accessed on my site as examplepage.com/somepost.php? I can see it as examplepage.com/wp-content/themes/mytheme/somepost.php but is ...
0
votes
0answers
13 views

Automatically associate the product image with the SKU

I manage a website that references more than 40,000 products. We used WP ALL IMPORT to import the products (more than 48h of import), and we had problems with images that are not imported while they ...
0
votes
1answer
16 views

Slide through page effect?

I would like my home page to jump to each section on scroll - kind of like a vertical slide show. This website is an example of what I am trying to achieve https://cornstudio.gr/. Is there a WP ...
0
votes
0answers
19 views

Replace admin edit.php content for CPT

I am building a WP plugin and I want to replace the admin list page (edit.php?post_type=my_cpt) for my CPT. The CPT should not have any 'add new' buttons as new content will only be imported. The ...
0
votes
1answer
21 views

How can I UN-orphan media files?

Something wrecked a non-profit WordPress site I'm responsible for (I'm not a WP expert, just the most technical of all our volunteers). I was able to restore most of it from a backup, but the ...
0
votes
1answer
14 views

How to make a sidebar form show at the top of page on mobile?

There is a quote request form on the sidebar of homepage and all other pages. On mobile and tablets, this form used to show on the top. But something changed and now it shows on the bottom of page ...
0
votes
1answer
19 views

Custom Post Type not using correct page template

I've been having trouble lately in trying to figure out why this custom post type is not using the correct template file. The custom post type is called 'job' and it has a rewrite on it for the slug ...
-1
votes
0answers
10 views

What is the most needed wordpress plugin that users are looking for which is currently not available in wordpress respiratory? [on hold]

I want to develop wordpress plugin and I want to know which is the most needed plugin so most of the users can avail the benefit?
0
votes
1answer
6 views

Twin value tags as an esoteric taxonomy

I suspect the answer might be, get ready to write some SQL but I'm going to ask anyway. I have a situation where I am pulling data from an outside source and storing it in a custom post type. For the ...
0
votes
0answers
12 views

Rewrite tag and url with 1 variable in array

i explain what i try to do. First i have WP 5.2 and Php 7.2. i have a form which send a variable array like myVar[] to another page template. the url is http://mysite/mypage.html?myVar[]=item1&...
0
votes
1answer
21 views

Returning a custom content types with meta values

I find myself facing a situation where I will have a bunch of custom post types and I want to select those with specific meta values. There is a slight wrinkle in that the value I want to select ...
0
votes
1answer
20 views

Create a Custom menu item fetched by Product Categories and Sub Categories

So one of our clients uses an ERP in order to update the products of woocomerce in his wordpress website. The ERP is updating the database directly for everything regarding the products,categories,...
0
votes
0answers
22 views

Custom Taxonomy Rewrite redirects back to home page

I have a custom post type with two taxonomies set. On my Episode CPT I have a rewrite arg set to "rewrite" => array( 'slug' => 'bctv', 'with_front' => false ). Then on my Taxonomy I also have ...
0
votes
1answer
44 views

Cannot fetch posts with certain 'product_cat'. WP_Query is empty

I want to set attributes for woocommerce products in certain product category. The query, however, doesn't seem to work. I've placed the following code into functions.php of my child-theme. Tried ...

15 30 50 per page