Custom post types with custom directories

Is something like this possible without running MultiSite (which I believe would force the blog to live at blog.domain.com)? Not quite. There are two basic modes multisite installation can operate in: sub-domains ( site.domain.com ) sub-directories ( domain.com/site ) As far as I remember in subdirectory installation main blog is also forced to have /blog/ … Read more

Display types of posts in edit.php instead of All, Published, Scheduled and Draft

Why don’t you just take post_formats (will be introduced with wp 3.1 in near future). These contain asides (small posts), chat, links, video, audio and so on. In general you just got a new meta-box that allows you to select the format when posting. Behind the scenes post formats are just predefined custom taxonomies bundled … Read more

Custom post type with file upload – need to “set as field” instead of “send to editor”

i cant say I’ve tried this but if you have the url of the file and all you need is the file name then you can just change your code from this: window.send_to_editor = function(html) { imgurl = jQuery(‘img’,html).attr(‘src’); jQuery(‘#upload_image’).val(imgurl); tb_remove(); } to this: window.send_to_editor = function(html) { imgurl = jQuery(‘img’,html).attr(‘src’); filename = substring(imgurl.lastIndexOf(“https://wordpress.stackexchange.com/”), imgurl.length); … Read more

Why is my custom loop not filtering correctly nor paginating?

To fix your “query filters” change // Set defaults in nothing entered: if(!isset($_POST[‘showfilter’])) { $ft_args=”post_type=ftevent&”; // $ft_args .= ‘posts_per_page=1&’; SHOW ALL $ft_args .= ‘paged=’ . $paged . ‘&’; $ft_args .= $osu_datecompare . ‘&’; $ft_args .= ‘orderby=meta_value&order=ASC’; } else { // Filter query with multiple taxonomies and paginate results $ft_args=”post_type=ftevent&”; $ft_args .= ‘posts_per_page=2&’; $ft_args .= ‘paged=’ … Read more