• I am developing plug-in for extracting all links of posts/category/tag/archive with admin demand its working fine with guid href of post.
    but now i want it with activated permalinks so i have addeded one simple line

    $post_array[0][$i]=get_permalink($post['ID']);
    so it gives fatal error

    Call to a member function get_page_permastruct() on a non-object in D:\www\wp_new\wp-includes\link-template.php on line 275

    want all that links with permalinks need solutions.
    Thanks.

  • The topic ‘Plugin error Call to a member function get_page_permastruct()’ is closed to new replies.