Post selector as Custom Field

The excellent My Metabox class by bainternet does exactly what you are looking for. Add a post dropdown list with $my_meta->addPosts(‘posts_field_id’,array(‘post_type’ => ‘post’),array(‘name’=> ‘My Posts ‘)); And it will create a meta box with posts dropdown (you can change this to a checkbox list if you want to be able to select more than one … Read more

Search in Archive Pages by subcategory, tag, custom field and year

You only need one form and a callback on pre_get_posts. For example: <form role=”search” method=”get” id=”searchform” action=”<?php echo $current_url; ?>”> <input type=”hidden” name=”s” value=”true” /> <!– Tag Search –> <label for=”tags”>Search Tag:</label> <input type=”text” value=”Search” name=”tags” id=”tagsearchbox” /> <!– Custom Field “autor” Search –> <label for=”autors”>Search in Custom Field ‘autor’:</label> <input type=”text” value=”Search” name=”autors” id=”autorsearchbox” … Read more