Output richtext metabox value
Try echo html_entity_decode($ccontent) .
Try echo html_entity_decode($ccontent) .
Hey Change Callback function to like this and add_meta_box to add_meta_boxes hook function create_meta_box_slider() { add_meta_box( ‘new-meta-boxes-slider’, __(‘slider Settings’), ‘new_meta_box’, ‘slider’, ‘normal’, ‘high’ ); } add_action(‘add_meta_boxes’, ‘create_meta_box_slider’); function new_meta_box() { global $meta_box_groups; $meta_box_groups[] = $slide_info; } I think it work fine
The php extension PHP GD was not installed on my dev machine. Installing php5-gd resolved this – sudo apt-get install php5-gd Stepping through using xdebug revealed that the theme’s aq_resize function was failing at the following code: else { $editor = wp_get_image_editor($img_path); if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) … Read more
Your should add rewrite endpoint template on theme activation hook and init hook. Also there is some little checks to perform to prevent errors. function sjc_theme_activate(){ sjc_theme_add_rewrite_endpoint(); flush_rewrite_rules(); } //for more info http://codex.wordpress.org/Plugin_API/Action_Reference/after_switch_theme add_action( ‘after_switch_theme’, ‘sjc_theme_activate’ ); function sjc_theme_deactivate(){ flush_rewrite_rules(); } //for more info http://codex.wordpress.org/Plugin_API/Action_Reference/switch_theme add_action( ‘switch_theme’, ‘sjc_theme_deactivate’ ); function sjc_add_query_vars($vars) { $vars[] = ‘template’; … Read more
i think you’re putting too many extra bits on the file and path strings. try this : function _s_scripts() { $js_dir = get_template_directory_uri() . “/js/”; foreach(glob($js_dir.’*.*’) as $file) { $label = str_replace(“.”, “”, $file); wp_enqueue_script($label, $file , array(‘jquery’), ‘1.0.0’); } } add_action( ‘wp_enqueue_scripts’, ‘_s_scripts’ ); when I run a similar function locally against a dir, … Read more
So, yes, WP can be quite a mess, more so in complicated themes. Some of it is just experience and chewing through sources. There are, however, several things that can help to determine what is happening via code: Dumping get_included_files() will get you all PHP files loaded up to that point. It’s messy, but sometimes … Read more
You can do this by adding the following class in your theme for admin options; Custom-Metaboxes-and-Fields-for-WordPress And you can call your repeatable fields with some thing like this; array( ‘name’ => ‘Name of field’, ‘id’ => ‘prefix_option_name’, ‘type’ => ‘text’, ‘default’ => ”, ‘repeatable’ => true, ), For more details on how to use this … Read more
The problem, as idiotic as it may seem, was that I had inadvertently included the template name of my standard subpage template into my landing page template. WP didn’t know what to do with it…
You can use is_active_sidebar() as a condition to enqueue your styles. It does precisely that — tells you if it has any widgets assigned. PS stop function_exists() madness 🙂 that is completely pointless check in modern WordPress.
Change $my_query to $wp_query. In my_simone_paging_nav(), add the global $wp_query so that get_query_var can find paged.