All Questions
125
questions
0
votes
1
answer
37
views
What is the easiest way to create a custom field archive?
So, here is the issue:
I am using a plugin named User Submitted Posts, and it works great on its part. However, I still want to have that user content page the Twenty Twenty Four theme has by default, ...
0
votes
0
answers
26
views
WP_Query does not return the result even if the data is present in the database
I have a plugin that has following code
$posts = new WP_Query([
'post_type' => 'campaign',
'meta_query' => [
'relation' => 'AND',
...
0
votes
0
answers
34
views
Show the author only own types of publications. (JetEngine, Elementor)
I created a custom post called Locations using Elementor + JetEngine. I also created a User Profile Builder Dashboard with the help of this, where the user (client) can add a location. But the problem ...
0
votes
0
answers
26
views
How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin
I have been trying to obtain posts by filtering by two custom fields in a wp query, the problem is that I do not get the expected result, which is that I filter by country and by a value that I am ...
0
votes
1
answer
323
views
Accessing Correct Database to Create REST API Endpoint
So I have multiple databases associated with the database where my wordpress website is hosted. I was wondering if I can access all of said databases with $wpdb or will I need to initiate a connection ...
0
votes
1
answer
83
views
Order custom post type by posts with most likes first
I am using the Like/Dislike plugin on a custom post type and am trying to order the display of posts by the most like count down to those that have no likes (and no set meta value in the posts meta ...
-1
votes
2
answers
2k
views
I want to display data last 7 days with date wise in chartjs?
Hello I am building simple plugin and i want to make a chart, I have used chartjs. Its displaying static data, I want label datewise. Example today 13-12-2022, So the lebel should start from 06-12-...
1
vote
1
answer
2k
views
woocommerce search by sku and title ajax
This snippet works only in Title and i need to add also in Metakey SKU.
<?php
// Ajax Search.
function thb_ajax_search() {
check_ajax_referer( 'thb_autocomplete_ajax', 'security' );
$...
0
votes
0
answers
21
views
Searching a tab/space delimited text file based upon form criteria and returning a 'record' into a word press results page
This is my first foray into turning a current perl (.pl) script into a bit of code within WordPress. We're looking to migrate this process/page which resides on an old web server into WordPress. ...
0
votes
0
answers
1k
views
Trying to get property 'ID' of non-object in /wp-includes/class-wp-query.php on line 4044
I've made a custom plugin, but somehow I've made something that fills up my debug.log with garbage. It looks a bit like something this is faulty in the WordPress-core, but I'm not 100% sure.
Here is ...
0
votes
0
answers
46
views
Use get_pages() before another plugin modifies it
In my little plugin I am using get_pages() to get some specific pages. Important is the usage of "child_of" and a custom field key.
$pages = get_pages([
'child_of' => 206, //Gets ...
0
votes
1
answer
794
views
Error in pdf generating plugin using FPDF
I'm trying to create a plugin using FPDF to create an options page to print custom post types.
Here is my code:
<?php
/*
* Plugin Name: RT FPDF Tutorial
* Description: A plugin created to ...
0
votes
1
answer
296
views
What database state changes happen after a post is manually "updated" with no changes?
After importing a series of posts (using WP All Import), my (custom) page template is unable to access the post's contents/fields. However, if I open the post in the editor and click "Update"...
1
vote
0
answers
524
views
DROP TABLE with uninstall hook not working
I wanted to explore more options and thats the reason for me building my first WP Plugin. I tryed to follow the coding standards, but I am struggeling hard right now. I am trying to drop my created ...
0
votes
0
answers
32
views
any word search Wordpress
By default, WordPress searches by keyword. What this means is that when passed the search query football boots, WordPress builds the following for the WHERE clause:
((wp_posts.post_title LIKE '%...