Questions tagged [parameter]
The parameter tag has no usage guidance.
158
questions
0
votes
0
answers
18
views
How to Prevent ?keyword Parameter from Being Indexed and Stop Its Generation in WordPress?
I need help with the following:-
1-Prevent ?keyword parameter from being indexed in search engines (Google Search Console).
2-Stop ?keyword parameter from being generated in WordPress.
0
votes
1
answer
49
views
WordPress REST API custom endpoint not allowing multiple parameters
I've made a custom endpoint for my REST API:
add_action( 'rest_api_init', function () {
register_rest_route( 'foo/v1', '/bar/', array(
'methods' => 'GET',
'callback' => 'foo_callback',
) ...
0
votes
1
answer
12
views
Conditional Content Linked to Cookie Value Only Shows on 2nd Page Load
I have the following 2 functions in functions.php
// Function to set the plan cookie
function set_plan_cookie() {
if (isset($_GET['plan'])) {
$plan_value = sanitize_text_field($_GET['plan']...
0
votes
2
answers
87
views
Is it possible to create a custom post type with blank page for Post List and Add Post Page only?
I would like to completely reorganize, stylize a custom post type.
By default register_post_type() function add Title, editor, category and tags into add custom post from $supports argument.
Can I ...
0
votes
0
answers
20
views
Capture query param and insert into to form field
We use WordPress for our landing pages. We have a query param ?utm_source=some_string that we'd like to capture (or pass along as user navigates site) and then eventually append to URL when user ...
0
votes
0
answers
81
views
Embed dynamic php snippets with parameters in a blogpost
I have a setup where I embed some entities in my blogposts (products essentially) and then I have written a script and added to functions.php where I can all an API to get some metadata about each ...
1
vote
1
answer
296
views
How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. 'post-type')?
this is my very first question here. So please don't be too angry, if I miss something out or make mistakes while using the plattform. I was, of course, trying to find an answer on my problem first. ...
0
votes
1
answer
244
views
Registration fields prefilled with URL parameters
I’d like to invite some users via email to register and would like to prefill the user registration fields, such as
A.) username and B.) email.
Unfortunately it is not working and my JS skills suck... ...
0
votes
0
answers
383
views
Adding query parameter to archive page returns 404
I've created a new post type called Creations.
On the creations archive https://example.com/creations I am showing a grid of creation posts.
If I add query parameter to the URL I get a 404, why is ...
0
votes
1
answer
171
views
How to pass username in affiliate link in wordpress website
I need to pass current logged in user in wordpress website as SUBID in the affiliate link as follows.
Affiliate link format is like below.
https://affiliatenetwork.com/track?id=myuserid&url=https:/...
0
votes
1
answer
125
views
Warning at top of website & top menu gone
This warning has appeared at the top of our website, and our top menu bar has disappeared:
Warning: call_user_func_array) expects parameter! +~ be
a valid callback, function
'...
0
votes
1
answer
402
views
Passing values through url for checkbox fields with same name to get?
Look to this images
For example chose "Ajna" then select "Residential and Hotel Apartment"
after click Search Properties => I need to show items that have these categories
<...
0
votes
2
answers
701
views
How to get a page url segment on wordpress?
I've created a regular wordpress page named "user" which is using a custom template.
This page is supposed to be called like so:
www.site.com/user/<ID>
Is it possible to get the ID ...
1
vote
1
answer
333
views
Create URL with parameter for JQuery toggle status
Inherited a theme and cannot contact the original developer. In the site, there are toggles so that users can switch between English and Spanish versions of the content. The toggle JS is included in a ...
0
votes
0
answers
482
views
Different url to same page (with dynamic content)
I have a custom php script that in a specific page of my wordpress website is generating a dynamic content (ie. page "mysite.com/citydetail" that will load a list of places specific for that ...