Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
285 views

I'm working on a WordPress project where I need to create custom rewrite rules for various post types and their associated categories. The goal is to rewrite URLs in the format /post-type-slug/...
user1027820014's user avatar
0 votes
1 answer
5k views

I'm working with Grafana and using KQL for log queries. I want to incorporate Grafana query variables into my KQL queries to make them more flexible and interactive. However, I'm facing challenges in ...
Srikanth Mannepalli's user avatar
2 votes
1 answer
222 views

Assume I have the following pages on my website Page 1: example.com/somepage.php?action=a Page 2: example.com/somepage.php?action=b Page 3: example.com/somepage.php?action=b&other=c IMPORTANT ...
Greeso's user avatar
  • 8,429
0 votes
1 answer
673 views

I want to be able to use the variable names in Redshift which refers to my DB Objects (like schema and table names). Something like... SET my_schema="schema": SET my_table="table"; ...
grepIt's user avatar
  • 116
0 votes
0 answers
16 views

I have SQL Server script that has scalar variable that can be used in single execution scripts Just want to ask is there any way I can declare scalar variable like in PostgreSQL. See sample code below:...
Arturo Tiangco's user avatar
4 votes
1 answer
811 views

I'm developing a WP plugin and have a WordPress URL: (e.g.: http://localhost/testsite1/coder/?id=66), and have attempted to add a rewrite rule to http://localhost/testsite1/coder/66/ using the ...
sw123456's user avatar
  • 3,489
1 vote
1 answer
7k views

I have the url http://localhost/testsite1/coder2/?id=71 with parameter id=71. As i am developing in WordPress I cannot use $_GET['id'] and so need to use get_query_var('id') to access the parameter. ...
sw123456's user avatar
  • 3,489
0 votes
1 answer
365 views

I am trying to make a request to GraphQl. I can do it in the playground. Request in the playground When I try to make a request using flutter, I cannot make a wrapper LogIn in Query variables. This is ...
Igor Lopatchin's user avatar
1 vote
1 answer
396 views

I have two forms on my wordpress site, search.blade.php and blog-search.blade.php. search.blade.php is in the header of the site, and searches all content types. blog-search.blade.php is meant to only ...
James Randolph's user avatar
1 vote
1 answer
2k views

I'm trying to set up a drop-down that would sort my posts by Newest to oldest and Alphabetical. This is what I have so far: I'm declaring an empty variable, then a form where I can change the contents ...
ergoProxy's user avatar
0 votes
2 answers
71 views

I am using query_vars in my function.php to get some data in my URL after a form is submitted. This is all working fine, however I feel like the code can be improved a lot, but I'm not sure how to ...
ImranR's user avatar
  • 516
8 votes
4 answers
18k views

Im trying to get the current page url while on the wp-admin/admin dashboard, is it possible? Im trying to use these codes but i can't seem to get it to work. global $wp; $current_page = add_query_arg( ...
Amenadiel's user avatar
  • 303
2 votes
1 answer
7k views

How can I get a WooCommerce order by its number (instead of its ID)? I tried using wc_get_orders with custom args, like: wc_get_orders( array( 'number' => '1000' ) ); But it doesn't seem to work. ...
OhMad's user avatar
  • 6,949
0 votes
0 answers
58 views

I have an issue trying to import access db through a query , but using variables variables are macroWB and cust macroWB refers to filepath cust refers to selected customer name VBA code works with ...
vicx's user avatar
  • 21
0 votes
0 answers
439 views

In my custom post type i want to filter depending on the parameters in the url. For example ?car=yellow&foo=1 refer to meta query key and value. The key and value's are the extra fields. What ...
user1654929's user avatar
1 vote
1 answer
1k views

I have an issue trying to get the current page from WP pagination. Here is my code: global $wp_query; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; var_dump(...
Dumitru  Barbuta's user avatar
1 vote
2 answers
2k views

I can't pass variable to subquery. I have 2 different tables where need get all interview persons. Current my SQL SELECT empl.id AS id, (SELECT GROUP_CONCAT(interviewed_by SEPARATOR ...
Nefro's user avatar
  • 185
0 votes
1 answer
114 views

I'm trying to save Query Vars to a post for later retrieval. I'm using permalinks in this format: domain.com/%category%/%postname%/ Example: I create a following page domain.com/page-003/ I add ...
Tom's user avatar
  • 35
2 votes
0 answers
345 views

I've been wracking my brain with this problem for the past couple of days, looking over all the potential solutions with no success. Here's what I'm trying to do. I want to create an SEO friendly ...
StephenB's user avatar
  • 166
2 votes
1 answer
3k views

I am creating a plugin. I want to pass parameters in URL or you can say I want multiple URLs for same page(But this will load same page Not a Redirect). For example: http://www.ijmsbr.boxysolutions....
Muhammad Akif's user avatar
0 votes
1 answer
1k views

We have started appending fairly simple custom parameters onto the url of our website to track marketing sources. An example might be www.example.com?campaign=facebook&device=mobile. Problem is,...
Amanda's user avatar
  • 11
0 votes
1 answer
360 views

Solution B As I accepted @Strawberry answer and this solution is out of the question of the post itself, I won't write it as an answer, but leave it here to anyone to whom it may be useful. The main ...
Unapedra's user avatar
  • 2,413
-1 votes
1 answer
168 views

Using .htaccess, I have tried some things to redirect Urls with variables to main the domain www.my_domain.tld, but I didn't find the right way. I have 2 kinds of Urls that I want to redirect to my ...
LoicTheAztec's user avatar
0 votes
0 answers
46 views

Could someone please solve a beginner's crisis for me? I simply CANNOT figure out how a plugin generates a page or even multiple pages without making a page template in the dashboard. I have read ...
whatwhatwhat's user avatar
  • 2,326
5 votes
2 answers
337 views

I'd like to add a query variable to all queries coming from a certain domain. For example, mydomain.com and proxydomain.com both show the same WordPress site, but for users visiting via proxydomain....
HWD's user avatar
  • 1,649
0 votes
1 answer
114 views

I have made a template for my post type, this works great. However I want similar duplication with certain parts of the original. I have an ajax call using jQuery $.get, I want to target the second ...
Neil's user avatar
  • 966
0 votes
1 answer
75 views

I've read a lot of threads here but can't find a real answer. I'm building a desktop app that first loads a lot of json records (let's call them "cards"). Then the user can filter them down with by ...
Luca Reghellin's user avatar
6 votes
1 answer
7k views

I'm trying to run a query that involves a custom variable over JDBC toward a MySQL 5.0 database (Hibernate 4 as the ORM): SET @rownum := 0; SELECT rnum FROM ( SELECT (@rownum := @rownum + 1) AS ...
watery's user avatar
  • 5,557
7 votes
1 answer
1k views

I was playing around (out of interest) with retrieving a tree of nodes in a simple adjacency list with a recursive query using local variables. The solution i have so far is fun but i wonder (and ...
Kaii's user avatar
  • 20.6k
13 votes
4 answers
60k views

Is it possible to set/read variables from within the query? pseudo code: SELECT animal_name, @tallest_animal = (select top 1 height from animal order by height desc) as tallest, @...
freand's user avatar
  • 311