Title: dimavrn1's Replies | WordPress.org

---

# dimavrn1

  [  ](https://wordpress.org/support/users/dimavrn1/)

 *   [Profile](https://wordpress.org/support/users/dimavrn1/)
 *   [Topics Started](https://wordpress.org/support/users/dimavrn1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dimavrn1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dimavrn1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dimavrn1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dimavrn1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dimavrn1/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Unyson] Shortcode to post custom category posts and count](https://wordpress.org/support/topic/shortcode-to-post-custom-category-posts-and-count/)
 *  Thread Starter [dimavrn1](https://wordpress.org/support/users/dimavrn1/)
 * (@dimavrn1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-to-post-custom-category-posts-and-count/#post-7195257)
 * How function are displayed list of all posts in site i think it get_posts but
   it don t work
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Unyson] Shortcode to post custom category posts and count](https://wordpress.org/support/topic/shortcode-to-post-custom-category-posts-and-count/)
 *  Thread Starter [dimavrn1](https://wordpress.org/support/users/dimavrn1/)
 * (@dimavrn1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-to-post-custom-category-posts-and-count/#post-7195256)
 * I just did not seem to put it right ….
    In your framework, there are shortcode
   display widget aria, and it is possible to choose a dynamic list of sidebars
 *     ```
       <?php if (!defined('FW')) die('Forbidden');
   
       class FW_Shortcode_Widget_Area extends FW_Shortcode
       {
       	public static function get_sidebars()
       	{
       		global $wp_registered_sidebars;
   
       		$result = array();
       		foreach ( $wp_registered_sidebars as $sidebar ) {
       			$result[ $sidebar['id'] ] = $sidebar['name'];
       		}
   
       		return $result;
       	}
       }
       ```
   
 * instructions no how to display dynamic lists in the selection ‘choices’
 *     ```
       <?php if (!defined('FW')) die('Forbidden');
   
       $options = array(
       	'sidebar' => array(
       		'label'   => __( 'Sidebar', 'fw' ),
       		'desc'    => '',
       		'type'    => 'select',
       		'choices' => FW_Shortcode_Widget_Area::get_sidebars()
       	)
       );
       ```
   
 * I want to display a list of all Posts/Pages that are on the site in a dynamic
   list of what code I need to do in a class file?

Viewing 2 replies - 1 through 2 (of 2 total)