creding
Forum Replies Created
-
Forum: Plugins
In reply to: Custom query url for taxonomies on multiple post typesYou could also change this
$template = dirname( __FILE__ ) . ‘/announcements-template.php’;
to this
$template = dirname( __FILE__ ) . ‘/custom-‘.$post_type.’.php’;that would allow you to create custom templates that can be called by the current type with out rewriting a lot of code. I would also probably change
$post_type == ‘announcements’
to
in_array( $post_type, array(‘announcements’, ‘other-posttype’, ‘other-posttype2’) )that will enable you to set some post types you want to use the custom template
Forum: Plugins
In reply to: Custom query url for taxonomies on multiple post typesFixed my error in the previous 🙂
Forum: Plugins
In reply to: Custom query url for taxonomies on multiple post types
<?phpfunction get_custom_post_type_template($template) {
global $wp_query;
$post_type = $wp_query->query_vars['post_type'];
if ( !isset($wp_query->query_vars['town'] ) )
return $template;
$tax = $wp_query->query_vars['town'];
if ($post_type == 'announcements' && $tax ) {
$template = dirname( __FILE__ ) . '/announcements-template.php';
}
return $template;
}
add_filter( "taxonomy_template", "get_custom_post_type_template" ) ;Forum: Plugins
In reply to: Custom query url for taxonomies on multiple post typesadd_action('admin_init', 'flush_rewrite_rules');
add_action('generate_rewrite_rules', 'town_rewrite_rules');function town_rewrite_rules( $wp_rewrite )
{
$new_rules = array(
'town/(.+)/(.+)' => 'index.php?post_type=' . $wp_rewrite->preg_index(2) . '&town=' .$wp_rewrite->preg_index(1));$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}Hi Karen, I was able to reproduce the problem by inserting the images one after another without any spacing. I believe this is an issue with wordpress and shortcodes as opposed to the plugin though.
This plugin doesn’t offer the slideshow player, It is strictly for inserting single images or videos one at a time from Director. For slideshows we have the slidepress plugin.
I left one test post in as a draft so you can publish it and see what I am talking about. Try removing the spacing between the end of one caption shortcode and the beginning of another and see if the code goes wonky on you.
Hi Karen, it appears the problem was caused due to adding a http:// in the path to director. The plugin is set to use the path without the http://. I’ll see what I can do to fix this in the future.
Would you mind contacting me through our support center so I can help you further? http://help.slideshowpro.net/ Mention this thread.
The problem may be caused by a plugin conflict. To test you can disable other plugins and see if it works. If not then it could be a theme issue. It’s hard to say without seeing it in action.
Hi Karen, what version of php are you using?
@sschuur the conflict with ProPlayer should be resolved with the latest update (1.0.1) please let me know if there are any other issues.
Contact me at support[at]slideshowpro.com and I’ll see what I can do to help get this resolved.