WordPress Front end editor
WordPress Front end editor
WordPress Front end editor
The blank lines are removed by WordPress after saving the post. If you have to use blank lines, you can instead use following html <div style=”clear:both;”></div>
Did yoy check the image height is it more than 1000px. Because if the height is less than ur specified one it will use the current size of the image.
The media_upload_tabs filter passes a single argument containing an array of the tabs, you can unset() them to remove them. The array looks something like this: Array ( [type] => From Computer [type_url] => From URL => Gallery [library] => Media Library ) to remove the media library tab: function remove_media_library_tab($tabs) { unset($tabs[‘library’]); return $tabs; … Read more
Image Post creates unusual extra HTML
Try using the Advanced Custom Fields plugin: http://www.advancedcustomfields.com/ You can add a file(s) upload field to your “designs” post type, and hide the regular content editor. Then you can create a custom template for that post type that displays the files attached to the post.
As suggested by @Sumit, the problem was in the template: there was a test that prevented the_content() to execute when the content was empty. <?php if ( $page->post_content && have_posts() ) while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile ?>
If I understand your question correctly, you would set a your preferred featured image/thumbnail dimensions either in Settings or, if you have or need a new special image type, by adding it to your functions PHP – something like: add_image_size( ‘product_preview’, 55, 55, true ) ; In order to retroactively crop the old images, pretty … Read more
It is enough to add unfiltered_html capability to Editor role. Add the following code into your current theme’s functions.php: function wpse_change_capability() { $role = get_role( ‘editor’ ); if ( ! $role->has_cap( ‘unfiltered_html’ ) ) $role->add_cap( ‘unfiltered_html’ ); } add_action( ‘init’, ‘wpse_change_capability’, 10 ); Login as the user with Editor role. Test it by editing any … Read more
What you need to do is to make custom user meta fields. Links these metafields to a custom category linked to your custom post type. Use this code for a checkbox feeling: <input type=”checkbox” id=”category-<?php echo $post_type->term_id ?>” <?php if($user_cats[0] && in_array( $post_type->term_id, $user_cats[0] )) echo ‘checked=checked’;?> name=”categories[]” value=”<?php echo $post_type->term_id;?>”/> Every custom category you … Read more