Title: Creating Virtual Posts via PHP
Last modified: April 7, 2020

---

# Creating Virtual Posts via PHP

 *  [moochie](https://wordpress.org/support/users/moochie/)
 * (@moochie)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/creating-virtual-posts-via-php/)
 * I’m trying to create private virtual posts but Airpress wont allow me to use 
   a template if its set to private, I was wondering if this could be done via PHP,
   I need all the virtual pages to be private to logged in users.

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

 *  Plugin Author [Chester McLaughlin](https://wordpress.org/support/users/chetmac/)
 * (@chetmac)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/creating-virtual-posts-via-php/#post-12641828)
 * From my local testing, it does work—however the output can be full of warnings
   and errors when not logged in (i.e. when you can’t see the private post).
 * I just pushed an update that exits gracefully when a post/page is private. Go
   ahead and try it out and let me know.
 *  Thread Starter [moochie](https://wordpress.org/support/users/moochie/)
 * (@moochie)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-virtual-posts-via-php/#post-12978749)
 * I’m sorry I’m going to have to bump this again, I’m having issues having any 
   private page or page that is a child to a private page populate in the virtual
   posts templates.

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

The topic ‘Creating Virtual Posts via PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/airpress_c9d28c.svg)
 * [Airpress](https://wordpress.org/plugins/airpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/airpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/airpress/)
 * [Active Topics](https://wordpress.org/support/plugin/airpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/airpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/airpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [moochie](https://wordpress.org/support/users/moochie/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/creating-virtual-posts-via-php/#post-12978749)
 * Status: not resolved