Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
23 views

Ignore Query String [on hold]

I have a website which supplies free wallpapers and from some reason when people try to get to it using google images, the link becomes broken... Example OK ...
0
votes
0answers
16 views

How to eliminate preview querystrings when clicking “ Preview Changes” button?

When I am working on a post and click "Preview Changes", Wordpress is adding the below information to the URL: ?preview=true&preview_id=55&preview_nonce=xxxxxxxxxxx How can I eliminate ...
0
votes
2answers
155 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
72 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
51 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
0answers
44 views

Processing form post data using database queries to construct custom query string

I have a form on my wordpress site. On form submission I want to: 1) Capture the form data 2) Run database queries using these data 3) Process the results and use these to construct a query string 4) ...
0
votes
1answer
79 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
39 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
46 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
79 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
68 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 ...
0
votes
2answers
360 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' ...
0
votes
1answer
184 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 ...
0
votes
1answer
228 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 ...
0
votes
0answers
57 views

Querystring (?page=0%2C1) appended at end of URL

Can someone help me with my WordPress site. My query is - Google Webmasters is showing some URLs which has page=0%2C3 or ?page=0%2C1 etc appended to the end of URL. Is it possible to stop appending ...
0
votes
1answer
1k 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
187 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
125 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
0answers
75 views

Wordpress query string rewrite .htaccess

At the minute my .htaccess looks like: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /testdirectory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
2answers
279 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 = ...
1
vote
2answers
3k 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
119 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
221 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
73 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: ...
0
votes
1answer
35 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
3k 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
94 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
111 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
152 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 ...
0
votes
1answer
245 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
3k 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
386 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
177 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
4answers
1k 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
300 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
91 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?
2
votes
2answers
1k 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 ...
0
votes
1answer
368 views

Sorting by 2 Custom Fields + Post Title

So I've successfully sorted my custom post type "property" based on it's city and state using this: <?php $querystr = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta, ...
4
votes
1answer
2k views

Querystring parameter getting lost in rewrite rule

I have successfully added a custom post type and the permalink structure works great. So, for instance, I've got a custom post type books, and the permalink to a book is /books/the-dictionary. My ...
1
vote
2answers
875 views

Can't pass table to $wpdb->prepare

I'm having trouble passing a table variable to $wpdb->prepare(); Here is functioning code: $table = $wpdb->get_blog_prefix( $blog_id ) . 'my_table'; $voters = ...
3
votes
1answer
478 views

Visually change theme via query string?

Ok, so I have an interesting situation here. I'm looking to have an option to "visually" change a theme via a query string. Basically over-riding the need to update the database and just temporarily ...
1
vote
1answer
611 views

Undefined index: b in /path/file.php relating to querystring parameters

I am getting errors in the server log for cformsII plugin but don't understand why. PHP Notice: Undefined index: b in /var/www/wordpressmu/wp-content/plugins/cforms/cforms-captcha.php on line 12 ...
4
votes
1answer
705 views

Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?

I am making a plugin and I have a bunch of different data types that I am creating edit pages for. I'd rather not have to create a separate function to add each one to the admin menus, since they're ...
0
votes
2answers
1k views

Multiple Category Query

Is it possible to display a wordpress category page but have it pull posts from mulitple categories? For example, let's say I need to pass in params for cat_id in this fashion ...
0
votes
1answer
311 views

Custom functions for string data calculations

Just a quick question. I have a form that calculates values based on user entry. The information is then passed via ajax to a php file for calculation returning the results. The problem is that that ...
0
votes
2answers
1k views

Custom query, multiple custom keys

I need to get posts that have two meta-values. It tried the following code, but this is getting empty result <?php $featuredquery = " SELECT wposts.* FROM $wpdb->posts wposts, ...
3
votes
1answer
883 views

Can 'numberposts' be passed in the URL query string?

I'm running into circles trying to set up a simple rewrite rule, and thought I'd run the question by some of the rewrite experts here. I have a custom post type, "mealplan", and I'm trying to ...