Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4229

Custom Post Types extend WordPress to support additional content.

0 votes

Custom pagination for custom post types (by names)

This is not so much an answer, but more a pointer to a direction to take. This will probably have to be 100% custom - and will be very involved. You'll need to create a custom sql query (using the wpd …
dwenaus's user avatar
  • 1,251
5 votes
Accepted

Message on Custom Posts Type admin page

Good question. I've often wondered it myself. This will work. You just need to change my_post_type_slug to the slug of your post type. There might be a cleaner way to find the post type other than usi …
dwenaus's user avatar
  • 1,251
1 vote
Accepted

Managing event dates vs published dates in admin custom post type

I had to do this on a program management system. this should do the trick. add_filter( 'pre_get_posts', 'my_sort_posts_listing' ); function my_sort_posts_listing( $wp_query ) { if ( is_admin() & …
dwenaus's user avatar
  • 1,251
0 votes

Customising wordpress search and using $_GET["s"]

If you use something like as you suggest why is that cheap and ugly? it saves you from having to rebuild a whole search mechanism, and dealing with the template hierarchy. and as you say it's sharing …
dwenaus's user avatar
  • 1,251
2 votes
1 answer
974 views

using custom taxonomies on non wp table?

I'm building a program registration system that will have a complex data structure. There are programs (custom post type, CPT), teachers (CPT), registrations (custom table and meta table), payments (c …
dwenaus's user avatar
  • 1,251
2 votes

Custom post admin filtering by post meta (the date)

You need to be storing your dates in some sortable format such as YYYY-MM-DD, or as a unix timestamp, otherwise you can't do this just with a query. Once it's in the format YYYY-MM-DD this should work …
dwenaus's user avatar
  • 1,251
1 vote
3 answers
12k views

How Can I Set the Post Author of a Post I Just Created With PHP?

I'm using PHP to dynamically create a custom post, and I need the author to be someone other than the logged in user. I found this https://stackoverflow.com/questions/5759359/wordpress-manually-set-th …
dwenaus's user avatar
  • 1,251