You should consider using the AJAX API. Once you get the hang of it, it is easier and saves you a lot of headache.
You question specifically: Your Lightbox should produce identifiable markup that you can use to hide the elements you don’t want, much like you’d create a printer friendly page. I don’t specifically know about LightBox, but ThickBox creates several <div>
s with the TB_
prefix on the ids, one of which is TB_ajaxContent
so…
#TB_ajaxContent .header { display:none }
… will hide the header with class header
. Fairly simple, really.
For your other issues, just load the single post page in LightBox and hide the parts you don’t want. Everything should work like normal. You probably don’t even need that callback script, honestly. You can just load the URL of the page you want.
Related Posts:
- How to add an admin notice upon post save/update
- Passing current cookies in wp_remote_get to get Draft Post Preview
- Listen to Post action
- Manipulate post category after time
- WooCommerce – Create Products Programatically [closed]
- which action to hook to in order to perform post-publish action
- Cannot access current post’s ID in custom plugin
- Set number of article per number of page
- How to change post status from publish to draft using hook in wordpress?
- prevent showing posts of an specific category in admin posts section
- Using radio button meta data from a custom meta box
- How to store an extra (surrogate) ID when creating a post with wp_insert_post?
- Global $post not working in OOP function WordPress
- Define a wordpress constant through plugin functions?
- How to get post bulk edit action trigger and get edited post ids?
- updating a post doesn’t trigger a function
- Hide a specific category in admin All Posts page (WordPress)
- Prevent Delete Attachment by URL or When Submit
- What hook do you use to update a post?
- Updating post data on save (save_post vs wp_insert_post_data)
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- Filter Hook for post table (not columns)
- why str_replace targeting pages instead just targeting post?
- Get author posts count after excluding a category
- Stop post submission without losing data?
- Cant’ Grab WordPress Built-in Posts Through Loop
- How can my plugin display a populated new post window
- search content of pages and list in wp-admin
- Finding a post’s slug
- Insert specific information to a posts of a predefined category
- WordPress: Develop multiple posts with different data
- How do I change the post title’s link on the posts page?
- Update user meta when post published no working
- Fixing the WP Post Object for Custom Route
- Export Posts with specific custom fields by sql
- Custom plugin to get related posts by category
- Hide the contents for specific post
- Error 404 blog/page/2/
- Onclick open posts displayed in slider in a popup [closed]
- How do I save JS classes being applied to the WP dashboard via custom plugin?
- Get current post data into array?
- How to get posts and comments amount per hour, per year and per month?
- While loop articles – if statement order
- post category in wp_insert_post
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- Multiple Loops Breaking Pages
- Adding an Archive button to posts page for administrators
- Show comment number per author per day
- How to make only posts show date
- add to end of post in the loop with plugin
- wordpress remove views from action links in a custom post
- Count number of posts of current month
- How do I Redirect a WordPress Page?
- Get all custom post types excepted some…
- Security to delete post by Admin
- Add title for previous and next posts to Yoko Theme
- Where do wordpress posts go?
- Add $values to post_class()
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- posts not showing on index.php
- How to rate a post from Admin Side / Manually?
- Images inside post title
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Page template is accessing the incorrect posts?
- insert a warning message into post-new.php
- How to get ID of the page included with get_page()?
- Conditionals if tags exist?
- Thumbnail Image to go in the post aswell
- Getting only the URL of the post thumbnail
- Posts vs Pages and categories
- Add filter to the end of the post
- What file is the standard frontpage that lists all the posts?
- outputting posts’ taxonomies: cant get ‘get_the_taxonomies’ working
- wp_insert_post_data: Limit number of Page but Post get affected
- How to Get Posts, Including Private Ones?
- Get all comments of author’s posts
- using is_paged for hiding image on posts
- Disable link for single posts
- How to dynamically parse and transform post/page content before displaying it?
- Find the Post ID of a post from another website
- How to display all posts divided/ordered by post date? [closed]
- Can’t set Post ID properly
- Remove password protected posts from default RSS feed
- Problems with Page Not Found
- Display post changelog in post
- Notification when visitor is on specific WordPress Article
- (solved) getting post author’s user role
- Block editors annoying warnings
- Send a review notification email to admin when a post is 12 months old
- How to WP_Query() from multiple blogs and order them?
- Blog Post On Home Page Displaying Page Published Date Not Post Published Date
- Add get_the_tags() to Single Posts section via functions.php
- First x post with another template then the others
- Why Query is returning empty array?
- How to get subcategories from category slug?
- Why does a published post only displays the title and not the content in the site? [closed]
- When creating a post how do you select the format?
- How do I extract just the post ID of the first item in whatever WP_Query returns?