| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 3 months |
| seen | Feb 12 at 17:08 | |
| stats | profile views | 49 |
|
Mar 4 |
comment |
Getting custom admin submenu item to highlight when its active You have a mistake in the url 'edit.php?&post_type=jobs&jobstatus=67'
... that first & shouldn't be there, following the ?.. |
|
Feb 25 |
comment |
Paginate Custom Post Type Page You defining a new WP_Query object, but referencing the main WP_Query object in your call to paginate links. Change $wp_query->max_num_pages to $loop->max_num_pages and see if that helps. |
|
Feb 25 |
comment |
Using next/previous_posts_link with customised search Exactly what i suspected, pagination functions will not work with any query beyond the main one, defined by query_posts , in essence the $wp_query object (the main query). I feel the two answers you have both address this problem though, so i'll leave it at that. |
|
Feb 21 |
comment |
Using next/previous_posts_link with customised search Where do those args end up? Inside query_posts, inside a call to WP_Query? Need to see the code those args are passed to.. |
|
Feb 21 |
comment |
Using next/previous_posts_link with customised search What happens inside the searchresults template(can you add the code from that file to the question), are you passing in those args as is? You'll lose any other query vars intended for the query that way..(such as paging values, etc..).. |
|
Feb 21 |
comment |
Including JavaScript file in the header Did you also upload the javascript files you're referencing to the host? From what you have described it sounds like you've uploaded the file where you make the script call, but not the Javascript files, hence why they can't be found. |
|
Feb 21 |
comment |
Custom field outside the loop and inside an array Looking at the sample code it looks like the code in question is actually inside a loop, $post->ID should be fine(as is referenced elsewhere inside the loop as it currently stands). |
|
Feb 21 |
comment |
Custom field outside the loop and inside an array The piece of code you posted is inside a loop. |
|
Feb 21 |
revised |
Changing upload dir in a plugin regardless of post type Add sample code for config and link to codex / small wording tweaks |
|
Feb 21 |
comment |
Problem using role_has_cap hook The filter is inside a function that returns true or false, it won't produce output, not in the way it's used. If you want to dump that data, just do it inside the core file directly(wp-includes/capabilities.php), then undo the changes when you're done seeing what you need to see. |
|
Feb 21 |
suggested | suggested edit on Changing upload dir in a plugin regardless of post type |
|
Feb 21 |
comment |
Use of caller_ get_ posts It's deprecated, it's the same as the new ignore_sticky_posts parameter, which when set to true excludes sticky posts from your query. |
|
Feb 14 |
comment |
Incrementing a class in a custom walker @toscho - Perhaps you could add that to the answer to make it clear, there could be some expectation for code posted as an answer to be a working sample(or noted otherwise). Yes we can expect developers/programmers to be here, but i don't think that's any reason to post invalid samples, even if some level of understanding is assumed... i personally just think samples should be valid wherever possible(of course, imho). |
|
Feb 14 |
comment |
Incrementing a class in a custom walker @toscho - You're missing an echo/print or var declaration at the start of the second line. |
|
Feb 4 |
awarded | Yearling |
|
Feb 3 |
comment |
Incrementing a class in a custom walker Sorry appendum, there's a problem with your sample code(the second sample is invalid, as is)... |
|
Feb 3 |
comment |
Incrementing a class in a custom walker Sounds logical, not sure i'd personally use a function for counting alone, but a valid approach nonetheless. |
|
Feb 3 |
comment |
Incrementing a class in a custom walker The static counter could also be a class var, same thing just less a function. |
|
Jan 20 |
comment |
Broken pagination I believe paged and page refer to different things, page refers to a paginated post(<!--nextpage-->), paged refers to paging for archival views(category, date, author, etc...). |
|
Jan 20 |
comment |
How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form? You script isn't inside script tags for starters, and you need a no-conflict wrapper for that jQuery.. (you can find info on both those things with a quick google).. |