Hot answers tagged

1

When you are concatenating string you shouldn't use ;after the method. Also you should close que quotes, call the method, and open again. Try the code below: $listItem .= '<div id="agenda-block-image-responsive" style="' .get_field('speaker-img' ) . '">';


1

You can't without hooking a filter to recognise the files in your plugin BUT you can hook into the template_include filter and register your own file e.g. add_filter('template_include', 'my_function_name'); function my_function_name( $template ) { if( is_post_type_archive( 'post_type' ) ){ $template = dirname( __FILE__ ) . '/templates/archive-post_type....


1

This is stored in the user meta table under the rich_editing meta key for each user. You could one of these (untested): 1) Add it for your specific users, e.g. via `add_user_meta( $user_id, 'rich_editing', 'true', true );` 2) Within the wp_default_editor() function, that determines the default editor, the user_can_richedit() function is applied. It ...



Only top voted, non community-wiki answers of a minimum length are eligible