Support » Plugin: WP Show Posts » feature request: Show shortcodes on list page

  • capitalismclown

    (@capitalismclown)


    HI,

    could you please add the shortcodes that are generated from a new list on the main post lists admin page? it is frustrating to have to click on each one to get to the shortcode.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • capitalismclown

    (@capitalismclown)

    Hi

    I have in fact done this myself, just added this code to the post-type file at the end. works great.

    add_filter( 'manage_posts_columns', 'revealid_add_id_column', 5 );
    add_action( 'manage_posts_custom_column', 'revealid_id_column_content', 5, 2 );
    
    function revealid_add_id_column( $columns ) {
       $columns['revealid_id'] = 'Shortcode';
       return $columns;
    }
    
    function revealid_id_column_content( $column, $id ) {
      if( 'revealid_id' == $column ) {
        echo
        '[wp_show_posts id="' . $id . '"]';
      }
    } 
    Plugin Author Tom

    (@edge22)

    Hi there,

    This has been done in 1.2.0, which is available for testing here: https://wpshowposts.com/wp-show-posts-1-2-0/

    Thanks!

    capitalismclown

    (@capitalismclown)

    Cool thanks. I’ll give this a test drive. Love the plugin saves me writing out WP queries and gives the customer some control.

    J

    capitalismclown

    (@capitalismclown)

    its good- but I would have made the image selection a dropdown, since these are the wordpress presets. but also note that not all themes generate medium_large and large. generatepress is just thumbnail, medium, full

    also it would help if there is some control over the image margins.

    J

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.