Skip to main content

Questions tagged [query]

A generic term referring to the process of retrieving information from a database.

0 votes
0 answers
10 views

Issues applying JSON body filters in EU F&T Portal SEARCH API with WordPress integration

I am trying to use the SEARCH API service of the EU F&T Portal public REST APIs for retrieving data for further integration with my project, but I am having some problems. I am using WordPress as ...
smelendez's user avatar
0 votes
0 answers
7 views

404 with google ads query params

any idea how to fix 404s for existing pages caused by Google Ads query params? See following in access log www.hedonia.sk 85.237.224.49 - - [17/Oct/2024:06:39:27 +0200] "GET /aktualne-obaly-pre-...
michalzuber's user avatar
1 vote
1 answer
279 views

SQL errors when querying for something with apostrophes

I have the below PHP function that queries some custom database tables and outputs the result. This generally works great, except for when I put an apostrophe in the query; for example, "Men's&...
JacobTheDev's user avatar
  • 1,253
1 vote
0 answers
17 views

Dinamis Query Loop template Custom Post Type dan Taxonomy di WordPress Blocks dengan PHP

Google Translated: Hello everyone, I’m trying to create custom blocks in WordPress that dynamically display posts from custom post type that I’m creating, which is “products”. I also want to sift the ...
iRhyt's user avatar
  • 11
0 votes
1 answer
22 views

Primary menu item is not highlighting when page is active even though it is linked from a url with query string to pre-populate a form field

I'm using the WordPress Astra theme. I have set Astra customization to highlight the active page primary menu item in the navigation bar. However, when I link to the "Contact" page using an ...
JLEM's user avatar
  • 1
0 votes
1 answer
32 views

Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder

I am getting the following error: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. I have gone through plenty of other similar questions ...
Aristocles's user avatar
1 vote
1 answer
86 views

Problem in MySql query on Wordpress [closed]

According to https://developer.wordpress.org/reference/classes/wpdb/ I'm trying to retrieve a value in a WP table with a simple query <?php global $wpdb; $results = $wpdb->get_results( "...
giulio64's user avatar
0 votes
0 answers
12 views

Struggling to edit the width of text in 'Variations' template

I am struggling, using the "Variations" template, to extend the paragraph text to fit the whole screen. I've googled and it comes up with lots of instances of variations, and I've searched ...
Laura's user avatar
  • 1
0 votes
0 answers
20 views

"Page Not Found" with multiple last pages of query

Issue When accessing the URL https://192.168.1.100/page/30/ in WordPress, I receive a "Page Not Found" error. The query has a maximum of 50 pages, with pages 1-29 displaying correctly. Pages ...
Juha Keränen's user avatar
0 votes
0 answers
36 views

taxonomy pages returning “NULL” when running default WordPress function 'get_queried_object()'

i keep seeing the following in the php error log, repeating: [05-Aug-2024 02:34:41 UTC] PHP Warning: Attempt to read property "post_content" on null in /home/euognau/public_html/wp-content/...
vulgarbulgar's user avatar
0 votes
0 answers
14 views

Remove posts that start with similar words (like a delete duplicate posts plugin)

Can anyone advise on a SQL query or plugin (or any other solution, as I haven't been able to find any) that can delete all posts that start with the same words, except the oldest of them? Or maybe to ...
Johnny Bravo's user avatar
0 votes
0 answers
50 views

is it possible to get a list of URLs from post_content directly in a mysql query via phpadmin?

We have many forms that are hosted externally from our Wordpress environment that we are moving to a different system, so we'd like to generate a list of the pages that contain these links along with ...
Erich's user avatar
  • 1
0 votes
0 answers
35 views

Advanced Custom Fields in WP_Query: Href Returning Empty

I'm still learning the ropes of PHP so please bear with me! So basically I have an ACF URL field "author_link" that I want to generate on a "table of contents" page in a list ...
Hex1189's user avatar
0 votes
2 answers
38 views

Is it possible to extract all product columns except for one?

I currently extract all product data in CSV format. There is also the option to select columns too. However, I sometimes want to exclude just one particular column, or maybe even a few others. ...
Mus's user avatar
  • 119
0 votes
0 answers
42 views

Filtering custom post type list in admin by custom meta key/value

I am trying to add an additional filter to be able to filter by a custom meta value but it is not returning any values when I would expect it to. Here is my code to add the filter dropdown (this seems ...
Tommizzy's user avatar

15 30 50 per page
1
2 3 4 5
127