The parameter tag has no wiki summary.
3
votes
2answers
112 views
CPT archive 404ing when using a custom taxonomy name as a variable
So, I'm using a custom post type archive and generating a JavaScript-based filtering interface for sorting through results.
Here's an example: http://www.inverity.org/sermons/
Now, what I'd like to ...
1
vote
3answers
1k views
Any way to use a custom Parameter for youtube embed without using an iframe?
I do not want to display the titles of videos I embed on my wordpress site. The way I've been doing this is using the embed link, inserting the iframe in the wordpress post and adding the custom ...
1
vote
1answer
255 views
wp_parse_args & category parameter
Am trying to use this code:
function wp_custom_archive($args = '') {
global $wpdb, $wp_locale;
$defaults = array(
'cat' => 6, //doing nothing
'format' ...
1
vote
1answer
47 views
Using several add_action with parameters inside a class
I'm creating a theme framework and using a class to initiate all basic function of the theme (adding theme support, menus, etc). I've got stuck when I tried to enqueue the scripts and styles though:
...
1
vote
3answers
246 views
Making extra parameters optional
I've setup a very specific function and it works well but I'd like to make the parameters optional but I can't get a handle on the regex bit:
add_rewrite_rule('whats-on/([^/]+)/([^/]+)/([^/]+)/?$', ...
1
vote
2answers
254 views
How do I retain url parameters the entire time a user browses my site?
We have customers that come from other sites and I would like to retain a url parameter /?lead=openeye throughout the time that they're browsing. That way when they fill out a form I can capture the ...
1
vote
1answer
303 views
Open Wordpress 'Add New Post' admin page with parameters set via $_GET
I want to launch my web browser from an automation tool I use and open Wordpress "Add Nwe Post" page in the admin area with specific title and content (it varies everytime, I generate it dynamically ...
1
vote
2answers
902 views
How to add URL-Parameter for Javascript Widgets?
I need to add pamarameters to URLs that are read by javascript widgest/gadgets run on the site.
Whenever I just add them e.g. the original URL is http://example.com/blog/page/ and the parameter is ...
0
votes
2answers
32 views
why do I have to use required parametres?
Why, when I want to use
add_filter( 'author_link', 'foo', 10, 3 );
function foo ( $link, $author_id, $author_nicename ) {}
I have to use 3 required parametres?
Why cant I do this:
add_filter( ...
0
votes
1answer
96 views
Where is this function's callback getting its arguments from?
This might be better suited to Stack Overflow, thought I'd try here first though.
I was walking through this tutorial by Justin Tadlock and encountered the function below being used as the callback ...
0
votes
1answer
23 views
How to return hook data when multiple parameters are present?
What is the proper way of returning data to a hook when there is more than one parameter present?
Example
apply_filters('image_downsize', false, $attachment->ID, $size)
Attaching a callback ...
0
votes
2answers
124 views
Detecting $_GET parameters from any page + Cookie
I'm trying to create a basic affiliation system plugin that for now, will do the following:
If it exists, read a $_GET URL parameter in any page (for instance http://mysite.com/about/?affid=1234). ...
0
votes
1answer
61 views
How do I pass $in_foooter to wp_enqueue_script() without passing other params?
I have some scripts that I'm enqueueing like this:
wp_enqueue_script("jquery");
wp_enqueue_script("myscript" , get_template_directory_uri()."/js/myscript.js", Array('myscript'), " ");
I want to ...
0
votes
1answer
86 views
Adding a Tag Parameter / Filter to My Shortcode
I have this plugin that displays category featured image thumbnails for each post via shortcodes.. like so,
[categorythumbnaillist 3] (3 being the category of course)
I would like it to only show ...
0
votes
1answer
87 views
Pre-existing arguments when using queries
I am struggling to understand how queries work with get_posts(), query_posts() and WP_Query().
In particular I do not understand what pre-existing selection may exist when using these on a given page ...
0
votes
0answers
15 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
0answers
46 views
Why won't the action hook wp_head won't accept parameters?
I'm working on a plugin that adds scripting to the head using
add_action('wp_head',..);
I have to pass a variable to the function to get my desired result. To test this I'm simple "echoing" out the ...
0
votes
3answers
117 views
problem in query_vars parameters
I've a problem. I've tried a lot of things but I could not find a solution.
I use query_vars parameters in this page and there isn't any problem. But i don't use different parameters or the same ...
0
votes
1answer
95 views
Display posts from an author using search parameters (not author template/query_posts)
Is there a way to retrieve a list of all the posts by an author using search (example: ?s&author=xxx)? I can't use query_posts or author template (don't ask why, take it as a condition).
And it ...
0
votes
1answer
57 views
wp_query monthnum parameter ignored [closed]
I'm dynamically building a query into a variable called $qstring and then executing it
When it looks like post_type=post&posts_per_page=4&order_by=modified&monthnum ...
0
votes
1answer
66 views
Post AND page parameter for WP function
Is there no post AND page parameter for WordPress functions? So would I have to create a custom post type to define post AND page?
For example, add_meta_box( $id, $title, $callback, $post_type, ...
0
votes
3answers
721 views
Passing url parameters with search form [closed]
I'm trying to let users have a filter option when they submit a search.
My search form:
<form class="searchform" method="get" action="http://www.example.com/">
<input ...
-1
votes
1answer
73 views
Create option for custom posts types
I'd like to add options to a custom post type and I have no idea how to deal with it.
Options should be treated as parameters for my custom post type. For instance I'll get a "Plublic / private" flag ...
-2
votes
1answer
69 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?