Title: get_permalink from admin section
Last modified: August 19, 2016

---

# get_permalink from admin section

 *  [poetter](https://wordpress.org/support/users/poetter/)
 * (@poetter)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/get_permalink-from-admin-section/)
 * Hi all,
 * i need to fetch the permalink of all posts within an plugin settings page. When
   i try to do this:
 *     ```
       $args = array(
                   'nopaging' => 1,
                   'post_type' => 'any',
                   'post_status' => 'any'
               );
               $posts = get_posts($args);
               $permalinks = array();
               foreach ($posts as $post) {
                   $permalinks[] += get_permalink($post->ID);
               }
       ```
   
 * I get this:
 *     ```
       Array
       (
           [0] => 0
           [1] => 0
           [2] => 0
           [3] => 0
           [4] => 0
           [5] => 0
           [6] => 0
           [7] => 0
           [8] => 0
       )
       ```
   
 * Does anyone know how to get the permalinks?
 * Thx in advance,
    cu poetter

The topic ‘get_permalink from admin section’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [poetter](https://wordpress.org/support/users/poetter/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/get_permalink-from-admin-section/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
