Choose options via url

I think this Custom Field Template plugin will help you. Plugin site. Don’t worry about Chinese screenshots. If you set at least one Custom Field Template for one category, when creating post and check that category additional options will appear.

Custom url for portfolio post type and for posts [duplicate]

try to set rewrite as parameter in $args register_post_type function. Sample: function codex_custom_init() { $labels = array( ‘name’ => _x(‘Books’, ‘post type general name’), ‘singular_name’ => _x(‘Book’, ‘post type singular name’), ‘add_new’ => _x(‘Add New’, ‘book’), ‘add_new_item’ => __(‘Add New Book’), ‘edit_item’ => __(‘Edit Book’), ‘new_item’ => __(‘New Book’), ‘all_items’ => __(‘All Books’), ‘view_item’ => … Read more

white page after php code insert for custom post type [closed]

You forgot about endwhile; at the end of loop. Using template don’t forget to get_header() and get_footer() Sample: <?php /* Template Name: Test */ ?> <?php get_header(); ?> <div class=”infoboxen”> <div class=”box”> <?php $loop = new WP_Query(array(‘post_type’ => ‘drei_boxen’, ‘posts_per_page’ => 10)); ?> <?php while ($loop->have_posts()) : $loop->the_post(); endwhile; ?> </div> </div> <?php get_footer(); ?>

Category List in Theme Options Page

This may be an HTML issue. For a multiple select, the name of needs to end in “[]”, to signify an array. So try changing: <select name=”<?php echo $themename_option_name.'[‘.$valueid.’]’; ?>” id=”<?php echo $themename_option_name.'[‘.$valueid.’]’; ?>” multiple=”multiple” style=”height:150px; min-width: 200px;”> to <select name=”<?php echo $themename_option_name.'[‘.$valueid.’]’; ?>[]” id=”<?php echo $themename_option_name.'[‘.$valueid.’]’; ?>” multiple=”multiple” style=”height:150px; min-width: 200px;”> So you should … Read more

Query is not work

I think the problem is in your transient set_transient( “7677recent_$my_paged”, $my_query, 60 * 60 ); This is currently refreshing every 1 hour you could try changing it to 3 or 5 mins for testins