The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
0answers
27 views

Showing random content / pictures from earlier posts in a sticky post?

I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
0
votes
1answer
18 views

Prevent redirect to page/page when reserved term 'name' in $_POST when value is a page/post title

I'm using a particular payment gateway which includes in their payment response the parameter 'name'. I'm aware this is a reserved term which shouldn't be used. Unfortunately, I have no control over ...
1
vote
1answer
40 views

pass query string on url to filter media

I have an author page which shows all uploaded media by that author. Each media can have tag1, tag2 or tag3. I would like to add an option where I can show on that same page only tag1 media without ...
0
votes
0answers
30 views

Add custom query string to specific pages

i need a function that add a custom query string to some pages on page load. I have some pages with city's like : mysite.com/city1/ On this city pages i need to add the query string like: mysite....
0
votes
0answers
46 views

Adding a query string to product links

I need to add a query string to the end of the links generated by a [products] shortcode from WooCommerce. Each product appears with three links. The image, the title and the add-to-cart button. I ...
0
votes
0answers
25 views

How to ignore further page child path?

We are desperately looking for a way to create a page that accepts parameters, just like: example.com/mypage/?key=value but... without the ordinary query string. Instead, we wish to use the ...
0
votes
1answer
53 views

WP adds long version query strings to CSS and JS files

I noticed WP adding long query strings to my CSS and JS files. Not just the version parameter from wp_enqueue_style from a Theme or something, no something fishy going on. I even switched to the 2016 ...
1
vote
2answers
102 views

How can I get the [video] shortcode to allow query string parameters?

Using WordPress 4.4.2 (latest version as of writing this) I'm trying to use the [video] shortcode to show a video on my site. If I provide a url ending with the filename.mp4 it works fine: [video ...
0
votes
2answers
119 views

How to remove query string from static resources

Any expert who knows about Remove query strings from static resources plugin. its not working. also i have try to write this code in function.php file of theme function _remove_script_version( $src ){ ...
0
votes
1answer
114 views

urlencode query string in gravity forms confirmation redirect

I have a form that passes information such as 'name', 'email', 'orderno', 'amount' and 'note' to a payment form hosted at ePay. In order to pass the field-values I use the standard-confirmation on ...
0
votes
0answers
43 views

Blog switch wpml string translation (multi-site)

I'm using wpml string translation on my main site, which pulls content from the other blogs, by doing a blog switch. This successfully gets english posts from the other sites if my main site is in ...
-2
votes
2answers
113 views

How to display search query as formatted text?

I am trying to display a site vistors search query on the search page. The form has custom fields so is not showing if it's "Search" and it doesnt show none of my custom fields. My search form - &...
1
vote
0answers
41 views

query_vars Filter: Would You Ever Use It When $_GET is Available and You Don't Need a 'Pretty' URL?

I'm having a hard time wrapping my head around the uses cases/best practice for the 'query_vars' filter, and query_vars in general, when I could use the $_GET global instead. Given http://example....
0
votes
2answers
32 views

How do you detect if a specific word is at the end of a the_title()

I have event listings that look like this PAPA ROACH AT THE PARAMOUNT IN HUNTINGTON ON APR 28, 2015 Im trying to remove everything after the last "ON" $s = the_title(); echo substr($s, 0, strrpos($...
0
votes
1answer
65 views

How to append short url to specific external links

I'm trying to find a way to pass on the page ID as a string for certain links. For example, any link that starts with http://forms.woo.com/ will have " ?pageurl='http://example.com/?p=1234' " ...
0
votes
1answer
344 views

Accessing custom URL parameters

I have created a page in wordpress to accept query string parameters. For the wordpress to recognize the query string parameters, URL parameter is added to query_vars using the following code snippet ...
0
votes
2answers
246 views

How to get the real address from a url (permalink)

For some reason i need the actual address of current page in my plugin , but after searching i can not find any answer on how i can get the real address of current page. I tested many functions for ...
0
votes
1answer
154 views

Wordpress loop based on url sting

I have a search form on my home page that contains ACF custom fields values in the dropdowns. On submit the form goes to /test-results/. On the form I have dropdowns for Price, Region and Title. If ...
0
votes
2answers
7k views

Grab values from the query string to fill in hidden fields in ninja forms [closed]

I've added a custom page template where I pull out a list of available jobs from the database. The page displaying the jobs is called jobs. I'm using the Ninja forms plugin to add a form on a page ...
0
votes
1answer
351 views

How to stop Wordpress Search form from searching only in current page?

My wordpress search form (code below) appends the query string to current page only. For example if I go to http://Website/unknown-page and then use the form to search for some content the query ...
0
votes
0answers
293 views

Problem with correctly registering query variable

I have an admin page for my plugin, which lists records from database. I want to sort them under some conditions. To call different sorting options, I've decided to use query string. Step 1: At ...
0
votes
1answer
282 views

Replace shortcode in substring

I've created these two functions to toggle between the first paragraph of the content and then everything but the first paragraph so when the user selects 'More' it slides out the article smoothly ...
0
votes
0answers
73 views

Using query string on edit CPT page

I'm adding a query string on the edit CPT page so I can add different meta boxes depending on what type it is. We're doing profile types, and the choices are student, staff, alumni and external. The ...
0
votes
1answer
80 views

Displays a string of linked images

How do I displays a string of linked images for a post using php? Terms http://domain.com/106.jpg,http://domain.com/109.jpg,http://domain.com/112.jpg <div class="gallery" ><?php ...
-2
votes
1answer
400 views

query posts only works on the first page

I'm using Jetpack's infinite scroll function on the homepage and I only want to display posts from the category with ID 1. The problem is that my query works correctly only on the first page. On the ...
1
vote
0answers
117 views

WordPress URL Rewrite for dynamic and customized URL

I'm working on a website in WordPress where I have to show AP News from external Database and not from the WordPress DB. I have created few shortcodes for this, which are working absolutely fine. I ...
1
vote
3answers
502 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' add_rewrite_tag('%body-style%','([^&...
-1
votes
1answer
953 views

How to append a query string to pagination?

I would like to append 2 variables from page 2 onwards in my loop. This is my normal category page www.example.com/category/news/ This is what I would like on pages: 2, 3, 4, 5 etc www.example....
0
votes
1answer
646 views

Wordpress Numeric Pagination with Query String [duplicate]

So I have a dynamic loop which is affected by a query sting in the URL.. For example I have 3 categories and when they click the category it just adds a query to the URL: <a href="?view=dogs">...
0
votes
1answer
4k views

Change gravity forms confirmation redirect query string to include entry id [closed]

I need to somehow insert the entry id from a Gravity Forms submission into a redirect confirmation. My problem is, that when attempting to create a confirmation via the admin interface, I can insert ...
0
votes
1answer
432 views

how to make URL link query string

I have pages with a custom meta field called "ctr_state", and it contains a state name, like "Arizona". I am trying to construct a hyperlink that will return an archive-like list of pages that match ...
0
votes
1answer
257 views

WordPress Query String: get_posts('cat=5') vs WP_Query( 'cat=5') vs URL: /site/?cat=5

We can filter our posts with a URL query string: http://mysite.com/?cat=5 We can also use a similar syntax for get_posts('cat=5') and new WP_Query('cat=5').** get_posts('param=value'); just passes ...
0
votes
2answers
687 views

Remove query string except from google map api

I have an issue similar to many others in the web, but still with no solution so far. To remove query strings i've used the following code: function _remove_script_version( $src ){ $parts = ...
2
votes
2answers
9k views

use query string in URL to display content on the page

I'd like to say something on my wordpress page, based on what page the person got there from. I can set up the link to that page to be www.website.com/page?parameter=myparameter, but is there a way I ...
1
vote
1answer
176 views

get_posts - find out if querystring was crap and fallback is used

If we pass a String to functions like get_posts, and that string is not a meaningful querystring (for Example get_posts(' ')), the function returns the results of the default query (the last five ...
0
votes
2answers
526 views

Is there a query string for edit.php to show all posts that have no custom taxonomy terms?

I wrote a plugin Premium Posts that registers a custom taxonomy called sms_premium_posts and adds a column to the post list table in the WordPress administration area. In that custom column, if a ...
0
votes
0answers
88 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://...
0
votes
1answer
45 views

Custom Portfolio String

I have a field on my portfolio admin page which shows the url when the user write a url(obviosly). I want to when the user write in the field, elements appear along with it. And if the field is empty ...
1
vote
3answers
5k views

How can I Rewrite a 'page' URL based on query string parameters?

I have the following page which contains a single post and a number of comments: http://mysite.com/tips When a user posts a comment, I add meta-data to it so I can filter comments by using these ...
1
vote
2answers
103 views

How do you Query posts with nothing in common?

We can get multiple posts manually in a page, but that's generated in a template, AFTER the default query returned something else (page/post, etc) How do you query multiple posts in a public query, ...
0
votes
1answer
113 views

Wordpress Page Template: Comment Filtering with Querystring

A custom Page Template was developed in order to display a list of products. A WordPress page (/products) was created and the template was applied to it. There is a database which the template's ...
0
votes
1answer
175 views

How to translate “$before” with get text in get_the_term_list?

How can I make $before (Books:) a translateable string <?php echo get_the_term_list( $post->ID, 'book', 'Books: ',', ', ' ', '' ); ?> with this method?: <?php the_content(__('Read more....
0
votes
1answer
486 views

when the incoming url is a query, in which function does WP begin to work with it?

I need to debug a problem with filters I have in place. they're affecting any url that includes a query; eg, http://my.domain.hk/?attachment=1. does anyone know in which function WP begins to work ...
3
votes
1answer
4k views

Redirect to post after submission with Gravity Forms? [closed]

How do I redirect to a post after submission with gravity forms. It gives you the option to put in query string values but when I add {post_id}/{Video Title:1} I get mysite.com/?123/name+of+post and ...
2
votes
2answers
465 views

How to order results by date and meta key?

I'm using wp-postratings to rate posts which stores the rating as a custom meta value ratings_score. It gives you the option to use r_sortby to order the loop by highest rated but I want to give it a ...
1
vote
1answer
193 views

how query string in wordpress receive the value other than post and page [duplicate]

Possible Duplicate: WordPress and $_GET Params I developing plugin in which i receive the value from query string against specific product and show the result please tell any idea or ...
2
votes
5answers
3k views

rewrite rules and querystring

When I go to the url mysite.com/photos/120 I'm wanting to get the 120 out. In the PHP I want to be able to grab these "parameters" like the url was mysite.com?page=photos&id=120 or even just ...
1
vote
1answer
364 views

Can't add external rewrites

I've got the following code in my functions.php function add_custom_rewrite_rules(){ add_rewrite_tag('%gallery%','([^/]+)', 'gallery='); add_rewrite_tag('%album%','([^/]+)', 'album='); ...
-2
votes
1answer
99 views

append $_GET parameters to post

I try to find a plugin that can "auto insert" to post edit/add page a parameters by fill $get paramerts: for example:post.php?title=a&tags=ss,dds,aa Ideas?
4
votes
2answers
2k views

order by second word in title?

I have full names as title posts and want to order it by the surname. How could i do this with wordpress? in PHP it would be along the lines of - SELECT * from posts ORDER BY SUBSTR(LTRIM(...