Title: Showing whole page
Last modified: December 12, 2021

---

# Showing whole page

 *  [JJNW](https://wordpress.org/support/users/jjnw/)
 * (@jjnw)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/showing-whole-page/)
 * Hi. Instead of showing contents of post, its show the whole page in popup. Grabbing
   first tag in article then showing whole page as if you did a search just for 
   that tag.
 * Any suggestions?
 * Thanks.

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

 *  Thread Starter [JJNW](https://wordpress.org/support/users/jjnw/)
 * (@jjnw)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/showing-whole-page/#post-15156209)
 * Okay, I removed from showing my tags, so it wouldn’t grab them, but now modal
   on click doesn’t work. I get an error in webpage:
 *     ```
       Uncaught TypeError: postLink is undefined
           initModal http://localhost:81/zzz/yyy/xxx/public/js/wp-post-modal-public.js:229
           jQuery 2
               dispatch
               handle
       ```
   
 * Which is this code:
 *     ```
       var postSlug =
                   postLink.lastIndexOf("/#") > -1
                     ? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
                       basename(postLink)
                     : basename(postLink);
       ```
   
 * So what are my options?
 * Thanks!
    -  This reply was modified 4 years, 4 months ago by [JJNW](https://wordpress.org/support/users/jjnw/).
 *  Thread Starter [JJNW](https://wordpress.org/support/users/jjnw/)
 * (@jjnw)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/showing-whole-page/#post-15156219)
 * YAY ! Fix it !
 * I had to comment out lines 228 through 237 in wp-post-modal-public.js
 *     ```
       /* var postSlug =
                   postLink.lastIndexOf("/#") > -1
                     ? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
                       basename(postLink)
                     : basename(postLink);
                 var postAnchor =
                   postSlug.lastIndexOf("#") !== -1
                     ? postSlug.substring(postSlug.lastIndexOf("#"))
                     : false;
       			  */
       ```
   
 * Woot woot!!!

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

The topic ‘Showing whole page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-modal.svg)
 * [WP Post Popup](https://wordpress.org/plugins/wp-post-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-modal/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [JJNW](https://wordpress.org/support/users/jjnw/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/showing-whole-page/#post-15156219)
 * Status: not resolved