The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
71 views

How to get variables from fucntion.php to my plugin files

I have written a function in functions.php that gets variables from a contact form and sends the inputs (and some other info like IP and location..) to my email. I am starting to work on my first ...
1
vote
1answer
18 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 ...
1
vote
1answer
976 views

Any way to use a custom Parameter for vimeo embed without using an iframe?

I am trying to get some oembed parameters attached to my Vimeo clips. I tried to get it going using the following two instructions: Passing Parameters to a Vimeo link in a WordPress Custom Field - ...
0
votes
1answer
49 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
42 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 ...
0
votes
1answer
355 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). ...
0
votes
1answer
72 views

How to change this internal image link parameter using PHP?

How resize this string / change link parameter. Original file = mydomain.com/wp-content/uploads/2015/01/name-file.jpg Return to $string now = mydomain.com/wp-content/uploads/2015/01/name-file-...
0
votes
1answer
148 views

How to pass menu slug as a variable to wp_nav_menu?

I need to show a menu depending on what user selects on Page Options. I take menu name from a user to a variable and now i need it to parse through wp_nav_menu. Im trying it like this but it doesn`t ...
0
votes
1answer
28 views

Duplicate pages with ?s parameter

I scanned my website with a duplicate content scanner tool, and it gives me lots of duplicate content pages with ?s parameter at the end, which are crawled by Google. How can I remove these pages? ...
0
votes
1answer
35 views

Custom Post Type URL Rewriting

I would like to add parameter to custom post type posts So I need to do my url like that. http://www.mywebsite.com/mycpt-slug/post-slug/myparameter I found this solution but here it's work with post ...
0
votes
1answer
77 views

Adding Parameters to get_comment

I have a code like this: <?php $comments = get_comments( 'post_id=' . $post->ID ); echo get_comment_author($comments[0]->comment_ID); ?> <br /> <?php $comments = get_comments( '...
1
vote
0answers
230 views

Using different parameters for different queries with pre get posts in functions.php

Im using pre_get_posts for my taxonomy.php for my products and paginations to work properly. And I have my pre_get_posts in my functions.php. This is how that current code looks in my functions. ( ...
0
votes
0answers
20 views

How can I make query string parameter used by shortcode content part of permalink?

I have made shortcode content that displays a form where you can enter some values, after submit save the values in a database table and redirect to /pageurl?id=x. If the query string parameter id is ...
0
votes
0answers
17 views

isset not working on 'error' param with valid URL

The below code is not working when there is an 'error' param, but does work with the other two params. For example: /my-courses/?error=access_denied When the URL looks like the above, the if ...
0
votes
0answers
155 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
0answers
71 views

How can I change sidebar position via URL parameter?

I have live Customizer on my theme and there is an option to set the sidebar position to align left or right. How can I change the sidebar position via URL parameter? For example, if my sidebar ...
0
votes
0answers
37 views

Save url parameters once page is loaded

I am sending out a campaign and want to track not just how many clicks I get via the campaign, but who of who I send it to actually clicks it. On my end I can append url parameters with the details I ...
0
votes
0answers
27 views

Send “hide header” parameter from ios app

I am creating a Wordpress website. One of the main ways in which it will be accessed is from an iOS app. When the website is accessed within my app, I want to somehow pass a parameter so that the ...
0
votes
0answers
60 views

How to pass parameters thru URL?

I have two input text box, one recaptcha and submit button. I want to check if the values that inputted by the user are in the database and if the recaptcha is checked. But the database is located on ...
0
votes
0answers
194 views

Adding 'query_vars' filter redirects to the latest posts page

On our main page we tried to use an additional query parameter to keep in session and use later. Instead of browsing www.example.com/mywp, the user is now browsing www.example.com/mywp?param=value and ...
0
votes
0answers
302 views

wp_upload_bits - define (sub)folder / (sub)directory before filename?

I have this code for a plugin I'm using. $comment_image_file = wp_upload_bits( $title . $user->user_login . $comment_id . '.' . $file_ext, null, file_get_contents( $_FILES[ $comment_image_id ]['...
0
votes
0answers
53 views

Custom POST parameters, index.php

I have contact form and I need to write custom function, that will send some data to admin e-mail. I dont get how to make index.php (or other wordpress script) receive my POST parameters, which I will ...
0
votes
0answers
89 views

Plus sign in query string to custom page gets 324 server error

OK, so I've created a page (http://justinhealth.com/testsite/error-signing-up). It's a custom error page for iContact. Now, when there's an error in iContact's signup, it actually goes here: http://...
-1
votes
0answers
15 views

Trying to search for Month & Year in a Search Query

I am trying to search for multiple parameters in my search form (i.e. month and year) via the "Ultimate WP Query Search Filter" plugin but so far I can only get it to search for either a month or a ...