prettyboymp
Forum Replies Created
-
Forum: Plugins
In reply to: [CMS Press] [Plugin: CMS Press] error on add content type pageWow, thanks for pointing that out. I’m using the wrong function to check for taxonomy tags in the permastructure. It shouldn’t keep the plugin from working correctly, though. I’ll add the fix to the next release.
I’m not an SEO expert, but you need to make sure there is a way that the crawler can get to your “questions”. Do you have navigation item that points to a listing of questions which then points to the individual question pages?
Make sure you have the question post type setup to be search-able and that you have the latest version of cms-press. A previous version had a bug that was incorrectly setting this value. You can test if it is working correctly by adding the following to your URL: ?post_type=question&s=[some search term]. Though, the custom content type should show up in the default search if you have it setup correctly.
Forum: Plugins
In reply to: [CMS Press] [Plugin: CMS Press] publish_post with custom post typesThe ‘publish_post’ action is post type specific. So if you have a custom post type, you need to change the hook you use. IE, if your post type is ‘foobar’, the hook you should use is ‘publish_foobar’.
Hi John,
1. What object cache implementation are you using? WP Cache Block doesn’t store any data in a /tmp file. It uses WordPress’ built in caching to store the output of the section. If this isn’t getting cleared, it is the caching plugin you are using.
2. You can set the cache time out per section. The second parameter of the wp_cacheblock_start() function takes an array of settings. So if you need the cache to be for 30 seconds instead of the default 5 minutes use:
`wp_cache_block_start(‘my-content’, array(‘expires’=>30))
3. See #2
4. See #1
5. The code is only working once because you are using the same blockname for each block. The first parameter of the wp_cacheblock_start() function should be unique per piece of content. So instead of using ‘my-content’, change it to something more descriptive like ‘left-sidebar’.
That is probably the best option for now. I still have some changes I’ll need to make before I integrate custom taxonomies into the permalink urls.
Forum: Plugins
In reply to: does cms-press take care of the post_type archive permalinks?It looks like you were missing some parentheses in that first if statement after you added the || is_feed().
CMS-Press can’t do this by default. You should be able to setup the permalink structure so that it followed mydomain.com/”postid”/movies/postname, but you would would need to add your own rewrite rule in other code to get mydomain.com/movies to still work.
Forum: Plugins
In reply to: [Plugin: CMS Press] Support Array ParametersYou can still register your own taxonomies via code. You just have to make sure you’re running it late enough. Instead of directly calling register_taxonomy_for_object_type(‘art’, ‘link’); in your functions file, include it within a function that runs on init. All of the cms-press post types and taxonomies are created on ‘init’ with priority 1. So registering anytime after that should work.
`
function register_my_taxonomies() {
register_taxonomy_for_object_type(‘art’, ‘link’);
}
add_action(‘init’, ‘register_my_taxonomies’);Forum: Plugins
In reply to: [Plugin: CMS Press] Support Array ParametersI’m not sure I follow.
Forum: Plugins
In reply to: does cms-press take care of the post_type archive permalinks?To display multiple types, you can use the code you have above, but first check that the post_type isn’t already set.
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( $query->is_home && !isset($query->query_vars['post_type'])) $query->set( 'post_type', array( 'post', 'cars' )); return $query; }The reason for this is that currently (I don’t know if this will change in the future), the is_home doesn’t check the post_type of the query. But this is also what allows us to have the home-{post_type}.php
Forum: Plugins
In reply to: does cms-press take care of the post_type archive permalinks?You shouldn’t need the query_posts.
When you say it doesn’t work. Is it not showing posts of post_type=’cars’ or it just not using the index-cars.php template?
Forum: Plugins
In reply to: [CMS Press] [Plugin: CMS Press] Page not found with WP3What permalink structure are you using for posts and for the custom post type that is showing as not found?
Forum: Plugins
In reply to: [Plugin: CMS Press] Custom fields / Meta boxesI do plan on adding that feature eventually, however, I probably won’t add it until after I’ve improved the meta box handling in WordPress core, hopefully version 3.1. Once I feel comfortable where the new meta box api goes, I’ll start to incorporate better metabox management into cms-press.
I haven’t tested any of the above plugins with cms-press. I tend to right my own code for custom meta boxes rather than using plugins.
Forum: Plugins
In reply to: [CMS Press] [Plugin: CMS Press] Order custom post typesNo, it doesn’t have that ability. The post types are registered in the order they were created. I’ve added it as a future feature, but I don’t have an idea of when it might get added.