Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [parameter]

The tag has no usage guidance.

0
votes
2answers
11 views

Add addtional page parameter before loading the page

the problem I got: I need to force a list view for products which are shown on a specific page only for mobile devices, for me the perfect solution would be an additional url parameter -> '&...
0
votes
0answers
19 views

Passing URL parameters to WordPress buttons

I'm beginner with programming and web development. I have a WordPress website (http://www.example.com). My post link is http://www.example.com/mypost/, so when I click on a button (assuming demo 1 ...
0
votes
0answers
17 views

WordPress Multisite query parameters

Am currently having an issue with the redirection of query parameters on a multisite. I have embedded an Angular App inside an iframe and have a script to assign the query parameters of the app to the ...
1
vote
1answer
13 views

How to Use Parameters with a Do_Action Function Within PHP Tags

I'm using a WordPress plugin that allows integration actions to integrate it within a theme. Using GeneratePress' Elements feature, I'm adding the action as a hook. Currently the code I'm using is: &...
-1
votes
0answers
32 views

Unable to connect user without appending parameters to URL

I'm facing a strange behaviour of wordpress, after login as "customer" i have to append manually any parameter to url to make me logged in, but when i am login with another role as administrator, i ...
0
votes
0answers
20 views

Change url parameter's name with rewrite

¡Hello! I need some help... I get this URL: https://mysite/entrevista-sesion/?Name=pedro And I need to change the parameter's name to: https://mysite/entrevista-sesion/?n=pedro I'm trying to ...
0
votes
3answers
36 views

Custom HTML title based on URL parameter

Basically, we have alot of traffic coming to our site from different sources looking for slightly different things. But instead of creating new pages for each slight change in heading, we were ...
0
votes
0answers
24 views

Changing WP_Query params with url Query Var

:) I've used WP_Query to display there posts (travels) here http://boost19.delavec.si/wordpressP/produkti/ So... I've got this WP_Query that is looping through my custom posts <?php $paged = (...
0
votes
0answers
24 views

Add attribute to existing Shortcode

I have an existing shortcode (from a plugin) and I would like to add a new attribute or parameter to this shortcode. The shortcode looks like this: [my_shortcode_from_plugin_xyz posts="5" autoplay="...
0
votes
1answer
27 views

Is it possible to change a shortcode parameter based on a media query?

I'm using a show/hide plugin that has shortcode with a parameter with state="open" or state = "closed" I would like to have it open on desktop but closed on mobile. Is it possible to change this ...
0
votes
0answers
22 views

Custom rewrite rule don't pass parameters

I created a page template where I list some properties I get from an external source, but a need to to recover an URL parameter in order to get the right properies... For example, this URL : www....
0
votes
1answer
33 views

How do I rewrite URL that has custom parameter

I'm stuck on rewriting my url. been searching for days hacking code together but to no avail - So looking for help now. My url is: https://domainname.com/topic/ux-process/?type=newsletter I want ...
1
vote
1answer
24 views

Pass GET params to URL from a main menu item

I have a booking form on page "Training" and I want it to be pre-filled with logged in user's details. For that I need to pass those details (name and email) to URL and the form should automatically ...
0
votes
1answer
751 views

Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Wppr_Public' does not have a method 'amp_support'

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Wppr_Public' does not have a method 'amp_support' in /home1/thrfolde/public_html/3foldtraining/wp-includes/class-...
0
votes
1answer
403 views

Use URL parameter to create dynamic content

I need to get the following task done: My client has a huge product database with way over a thousand different products with tons of details. We don't want to generate every product page individually....
0
votes
0answers
39 views

Controlling cookies from all plugins

Is there any way to create a cookie-consent badge that applies to all cookies from every that is plug-in installed? The EU Cookie Law plugin prevents embedded files and social media sharing buttons. ...
0
votes
2answers
64 views

Shortcode not interpreted if parameter set

My plugin implements a shortcode respecting wp best practices, but a strange behavior appears. First, the shortcode works perfectly on the test site, but not in production, with the exact same plugin ...
1
vote
1answer
41 views

Load custom template for specific GET parameter

How is it possible to load a different template file when a specific GET parameter is set? I want to create an account details page. So when the account parameter is set there should be loaded for ...
0
votes
0answers
23 views

Alter Woocommerce posts per page attribute [duplicate]

I need to alter the post_per_page value of the displayed products. In your opinion is possible to achieve this using a param added to the url? Something like www.siteurl.com/shop/?post_per_page=xx ...
1
vote
1answer
166 views

Get URL Param Plugin and Inserting Result in Widget Code

I am trying to insert the result from a Get Param plugin and insert it into a calendly widget on a WP page. In a code module, if I write the plugin syntax of: [urlparam param="Book" /] -and- ...
0
votes
1answer
418 views

How to create custom search result page with custom URL parameters for custom post type?

So I guess the question is : How do I define new page/url to which I can pass custom parameters, do a search for custom post type and pass the results to custom template for rendering? I have made a ...
0
votes
1answer
849 views

Wp Login redirect strips parameters from url

If i write http://domain.com/wp-login.php?redirect_to=http://domain.com/specificpage/?parameter1=dog&parameter2=dog&parameter3=cat in the url address bar (to make the login page redirect to a ...
0
votes
1answer
21 views

Get param from shortcode in plugin function

I am trying to get the variable passed in my shortcode so I can do a request with the id to a API. The shortcode looks like this: [product id="2"] In my function I want to do something with the "2". ...
0
votes
1answer
32 views

append current user-id to all internal permalinks

i am toying with myCred and would like to reward logged in users for sharing content bringing in visitors. myCred offers affiliate linking by user-id, so I figure, I "only" need to achieve appending ...
0
votes
1answer
806 views

array_filter warning - wp-includes/post.php line 3148

I inserted the following code, see below, to have a post submitted from the front-end. When you submit it, this warning appears: Warning: array_filter() expects parameter 1 to be an array, string ...
0
votes
1answer
126 views

shortcode - multiple instances of same parameter name in one shortcode instance

I'm looking to include a shortcode that builds a table of items and groups of items. For this I wish to be able to include an attribute multiple times or chain them together in some way. An example ...
-1
votes
1answer
770 views

Shortcode to include PHP file, pass various parameters to include?

Want to include php file in WP content. Some parameters will be different depending on the include. I want to write 1 include shortcode. I do not want to write different include functions for each ...
-1
votes
1answer
74 views

How to change window ratio in teachpress “tplist”

I am using teachPress to create list of publications. Picture below is a result of this code: [tplist order="title ASC" style="simple" year="2017" image="left" image_size="300"] Is there any ...
1
vote
1answer
73 views

How do I pass arguments for multiple functions hooked to a single action?

I wanted to set a default value for a parameter: function my_function( $arg = 'foo' ) { echo $arg } add_action('my_action', 'my_function'); function my_2nd_function( $arg = 'bar' ) { echo $...
2
votes
1answer
1k views

append url parameters to all links

I have a form in all my pages, and it has an hidden field named ref If the user land at www.example.com/1/ref=fb_ad and fill in the form in this page - the form catches the URL parameter. However, ...
0
votes
1answer
525 views

Pass post title as URL parameter

On my site/blog, I have one landing page, through which I collect all ‘Consultation Requests’ – let’s call it: http://example.com/conso-request/ On every page/post of the site is a navigation link, ...
0
votes
0answers
85 views

Why get_terms() behaves strangely when being called in admin (for use in meta box)?

I encountered a problem trying to make a select button comprising options of custom post type taxonomies (terms, taxonomies, not sure about proper nomenclature?). So, the function: $terms = ...
0
votes
0answers
180 views

User Affiliate Token Generator?

I want to add the feature if a user clicks on a Link which is already generated with a affiliate link: www.example.com/id82312312312?mt=8&uo=4&at=AFFILIATE-ID But if a user clicks on the ...
0
votes
1answer
23 views

Capture and display users name

Can anyone tel me if a plug-in exists that can do the following: Check is it's the users first visit, if so the user will be prompted to input their first name into a text field. Their name will then ...
0
votes
1answer
30 views

How to display a page dependent on a url parameter supplied by a form/button page?

Here's what I'm trying to achieve: I have a set of PDF files stored in a single directory on the server. Users should be able to enter the id of a file (filename without the extension) and click the ...
0
votes
1answer
141 views

How Do I Access Parameters Emitted by an Action?

I am creating a function that will be hooked into the woocommerce_subscription_payment_complete action. That action emits 1 parameter ($subscription) which is an object representing the subscription ...
0
votes
4answers
1k views

Wordpress ajax function parameter value not being passed

I am using wordpress ajax and following code not passing parameter value metakey: id to $_POST["metakey"]. So var_dump($_POST) shows array(0) { } and $_REQUEST shows array() if I enter static value ...
-1
votes
1answer
263 views

help me remove this additional parameter in url

One of my websites is having an additional parameter /?v=e5477cbee260 after the url. I do not understand what is this and how to remove it.I am using a godaddy hosted website .
0
votes
1answer
2k views

REST API parameters not working with nginx

I'm having an issue with the server I'm working off of ignoring any parameters I send to the REST API. My local environment works perfectly, but for some reason the other environments don't. I work ...
0
votes
2answers
315 views

How to use endpoint, but remove/rewrite endpoint base?

I've been messing around with rewrites and query_var to generate some listings, for example: ~/my-page/?my_var=1 ~/my-page/?my_var=2 ~/my-page/?my_var=3 After perusing StackExchange and the ...
0
votes
1answer
31 views

YearMonth datequery

I'm trying to make use of the Date Parameter 'm' which is for the YearMonth. I can't figure out what the query name is or how to use it to search for posts with it. Thanks
1
vote
2answers
103 views

Returning a value from a PHP page

I have created a WordPress page that has this simple PHP code: <?php $result = array( 'State' => 'Done', 'ID' => 1 ); wp_send_json( $result ); ?> When ...
1
vote
1answer
406 views

Passing a parameter to a permalink

I'm trying to create permalinks for a page that currently has parameters passed to it. The site was set up by somebody else and I'm not familiar with Wordpress I have various pages which have URLs of ...
0
votes
1answer
65 views

Loop 1 user randomly

At the moment I am using wp_user_query to loop users from a specific role(leden) on a webpage. For the overview page this is working fine, but on my homepage I want to feature one random user. I was ...
0
votes
1answer
221 views

How to get setting from separate file?

I writing a wordpress plugin, that connects to external database and fetch data. Also it create custom button for vitual editor. By clicking this button modal window has been opened, and after that I ...
0
votes
1answer
142 views

Get parameters and custom page template

My WP website have calendar page with custom page template. If i open mysite.com/cal i see calendar of current month, if i open mysite.com/cal/?month=01&year=2015 i see calendar for january. It ...
1
vote
2answers
2k views

Query string parameters from custom fields, inconsistent results

I've got a custom post type called course. Within a course post, I have a number of custom fields, specifically (all AFC select dropdowns): course_or_project, time_to_complete_project, ...
0
votes
0answers
865 views

Redirect based on $_GET parameters

I'm coding a payment gateway plugin for a webshop. I'm having trouble redirecting the users to two different pages based on the order status. In the payment sent to the gateway I can add one ...
0
votes
1answer
60 views

Using permalinks with parameters

I am trying to make a custom web app with wordpress. I have a page, Person with URL http://www.domainname.com/person. In that page, i have a shortcode. This shortcode is going to extract a get ...
1
vote
1answer
2k views

Dynamically change page title from URL param

I currently use SEO plugin but I need some extra help because the plugin cannot help me in this case. I have a page that displays data based on a URL parameter (ie. http://example.com/?user=john25). ...