Title: Partial access to custom post
Last modified: January 30, 2019

---

# Partial access to custom post

 *  Resolved [Manish](https://wordpress.org/support/users/nims/)
 * (@nims)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/partial-access-to-custom-post/)
 * I need to have a custom post or a regular post where I need to show part of it
   to all – like a description of a service or product and want to hide the contact
   details of the seller. Details of the seller needs to be shown to the people 
   who make payment to buy that post.
    Can it be done using this plugin ?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/partial-access-to-custom-post/#post-11148683)
 * Manish,
    Yes this would be possible but you would have to create a custom page
   template for your custom post type and utilize the template tags to block off
   customer only data.
 * TEMPLATE FUNCTIONS
    Out of the box this plugin will work with any theme which
   uses the standard WordPress function the_content() for those themes that do not
   utilize the_content() you can use the following static functions in your templates.
 * Woocommerce_Pay_Per_Post_Helper::has_access()
    This checks if the current user
   has access to the page. It returns true/false
 * Woocommerce_Pay_Per_Post_Helper::get_no_access_content()
    This returns the content
   specified in the PPP Options.
 * And example of this working together would be something like the following
    <?
   php if(Woocommerce_Pay_Per_Post_Helper::has_access()): ?> This is the content
   that a user should see if they paid for the post <?php else: ?> <?php echo Woocommerce_Pay_Per_Post_Helper::
   get_no_access_content(); ?> <?php endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Partial access to custom post’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pay-per-post/assets/icon-256x256.png?rev=2252656)
 * [Pay For Post with WooCommerce](https://wordpress.org/plugins/woocommerce-pay-per-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pay-per-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pay-per-post/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pay-per-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pay-per-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pay-per-post/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/partial-access-to-custom-post/#post-11148683)
 * Status: resolved