Upstreet Media
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: shortcode not workingWhen WP is executing the do_shortcode, for some reason $content is empty, which explains why it isn’t executing my function.
BUT, if $content is empty, how is it that when the page loads, my shortcode is displaying????
Something isn’t right here.
function do_shortcode($content) { global $shortcode_tags; if (empty($shortcode_tags) || !is_array($shortcode_tags)) return $content; $pattern = get_shortcode_regex(); return preg_replace_callback('/'.$pattern.'/s', 'do_shortcode_tag', $content); }
Forum: Fixing WordPress
In reply to: shortcode not workingI’ve been digging around more and I’m still at a loss as to why the shortcode is not working :/
Forum: Fixing WordPress
In reply to: custom taxonomy – can't change selections when editing postfigured it out. thanks!
Forum: Fixing WordPress
In reply to: custom taxonomy – can't change selections when editing postThanks. I think I’m a bit more confused now.
capabilities (array) (optional) An array of the capabilities for this taxonomy. Default: None 'manage_terms' - 'manage_categories' 'edit_terms' - 'manage_categories' 'delete_terms' - 'manage_categories' 'assign_terms' - 'edit_posts'
this is very vague. not a lot of information. :/
Forum: Plugins
In reply to: [FE Fiction] [Plugin: FE Fiction] No PH{P in ZIPHi,
I apologize. I have pulled the code for now to fix some issues and to provide an interface for setting certain config options so as not to cause issues if you have other plugins that might conflict with certain features of FE Fiction.
I will have the plugin back up as soon as possible.
Forum: Plugins
In reply to: [SharDB] [Plugin: SharDB] installed but not quite workingThanks. I’ll disable the vip setting and will shorten the dataset name.
I did notice the sites are getting created in other databases now.
Thanks for the feedback!
ChadForum: Plugins
In reply to: [More Types] [Plugin: More Types] Converting post types creates errorFind line 135.
Change
$wp_roles->add_cap($role, $capability);
To
if(is_object($mp_roles) && method_exists($wp_roles,'add_cap')) { $wp_roles->add_cap($role, $capability); }
Find line 135.
Chang:
$wp_roles->add_cap($role, $capability);
To:
if(is_object($mp_roles) && method_exists($wp_roles,'add_cap')) { $wp_roles->add_cap($role, $capability); }