Title: eshamis's Replies | WordPress.org

---

# eshamis

  [  ](https://wordpress.org/support/users/eshamis/)

 *   [Profile](https://wordpress.org/support/users/eshamis/)
 *   [Topics Started](https://wordpress.org/support/users/eshamis/topics/)
 *   [Replies Created](https://wordpress.org/support/users/eshamis/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/eshamis/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/eshamis/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/eshamis/engagements/)
 *   [Favorites](https://wordpress.org/support/users/eshamis/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Postie] Tags stopped working.](https://wordpress.org/support/topic/tags-stopped-working-3/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tags-stopped-working-3/#post-6618202)
 * It does process the value {location|1} before it is actually sent to email. Like
   any contact form. In other words before it reaches the inbox.
 * This is the chain:
    USER INPUTS VALUE INTO THE FORM > FORM PROCESSES VALUE (REPLACING{}
   with the actual word that user choses from the dropdown menu) > FORM GENERATES
   EMAIL AND SENDS IT > POSTIE PROCESSES EMAIL FROM INBOX.
 * I found the solution. I just placed {location|1} inside <p></p> and now it attaches
   the tag. It worked fine before, so one of the updates changed how tagging behave
   with html code. Before you could just post html code and tags: X, where is now
   if you use code you need to make sure tag is a part of the code.
 * Thank you for your assistance, very thankful that you support your plugin!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Postie] Tags stopped working.](https://wordpress.org/support/topic/tags-stopped-working-3/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tags-stopped-working-3/#post-6618090)
 * Wanted to make sure this is clear, because you might not be familiar with quform.
 * It is a contact form plugin. So everything with {} is replaced before it is processed
   by postie.
 * I was testing with a tag: “demo”, so what I see posted in the body of the message
   is tags: demo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Postie] Tags stopped working.](https://wordpress.org/support/topic/tags-stopped-working-3/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tags-stopped-working-3/#post-6618086)
 * I have sent the email the way it’s being sent with postie. I combine functionality
   of postie with quform plugin so everything inside { } is replaced with a value
   entered in quform form when it’s submitted. It did not conflict before.
 * Thank you for a fast reply.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Cannot add ccap with tag.](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/#post-6384242)
 * [@jaswsinc](https://wordpress.org/support/users/jaswsinc/) I read about the loop
   and tried to insert the code in idex.php with no success, because the location
   is probably wrong.
 * Meta Box is not an option because my security staff wont have access to backend
   of the site.
 * I believe I found a work around. I can assign a new membership level for each
   new user and then manually remove access to all lower levels with any user role
   plugin or similar. Then in s2member in tag restrictions.
 * The problem with this work around is that I can’t raise the limit of 100 membership
   levels. I tried this code:
    `<?php add_filter("ws_plugin__s2member_max_levels",
   function(){ return PHP_INT_MAX; }); ?>` And tried to insert desired value: `<?
   php add_filter("ws_plugin__s2member_max_levels", function(){ return 120; }); ?
   >` This code brakes my site, did I do something wrong here? Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Cannot add ccap with tag.](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/#post-6384225)
 * I also already tried replacing this code `header (“Location: “.S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
   
   exit();` with `continue;`
 * Didn’t work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] Cannot add ccap with tag.](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/)
 *  Thread Starter [eshamis](https://wordpress.org/support/users/eshamis/)
 * (@eshamis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-ccap-with-tag/#post-6384224)
 * Thank you,
 * The Alternative View Protection is enabled for ALL wordpress queries by default.
   This was one of the first things I checked.
 * Do I need to use this code?
 *     ```
       <?php
       if ($tags = get_the_tags ())
           {
               foreach ($tags as $tag)
                   {
                       if (!is_permitted_by_s2member ($tag->name, "tag"))
                           continue;
                       /* Skip it. The current User/Member
                           CANNOT access this Tag Archive,
                       or any Posts/Pages with this Tag. */
                   }
           }
       ?>
       ```
   
 * Or this one?
 *     ```
       <?php
       if ($posts = get_posts ())
           {
               foreach ($posts as $post)
                   {
                       if (!is_permitted_by_s2member ($post->ID, "post"))
                           continue;
                       /* Skip it. The current User/Member
                       CANNOT access this particular Post. */
   
                       $post_or_page_id = $post->ID;
                       if (!is_permitted_by_s2member ($post_or_page_id, "singular"))
                           continue;
                       /* The "singular" attribute can check both Pages and Posts the same time.
                       So if this was actually a "Page", that would be valid, w/ "singular". */
                   }
           }
       ?>
       ```
   
 * And do I insert it in the same s2hacks file or elsewhere? Sorry, I have very 
   limited code knowledge.
 * Thank you.

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