How to turn custom-post archive into an overview page, listing the metadata of the posts?

In Taxonomy.php (Create on if have none) in your template folder You should have something similer to this code: (taxonomy are similer to archive.php but used for custom post type) <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!–=== TO GET THE TAXONOMY TITLE ===–> <h1><?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( … Read more

Add text to metabox input text field from Thickbox

What your code in; jQuery(document).ready(function(){ // your code here… }); …and in fact your code should look like this; jQuery(document).ready(function($){ $(‘.insertdownload’).click(function(){ var did = ‘this is only a test’; did=did.replace(‘download-‘, ”); if ($(‘#format’).val(‘1’)) { $(‘#my_new_field’).val(‘[download id=”‘ + did + ‘” format=”‘ + $(‘#format’).val() + ‘”]’); } else { $(‘#my_new_field’).val(‘[download id=”‘ + did + ‘”]’); } … Read more

Custom Post Type and single-posttype template

I found solution. Big Thanks @Scribu Alternative to query_posts for main loop? Now works fine and no more 404 error. function wpse49295_alter_the_query( $request ) { $dummy_query = new WP_Query(); $dummy_query->parse_query( $request ); if ( $dummy_query->is_single() ) $request[‘post_type’] = ‘topic’; return $request; } add_filter( ‘request’, ‘wpse49295_alter_the_query’ );