Title: hide post
Last modified: January 29, 2020

---

# hide post

 *  Resolved [sergey81](https://wordpress.org/support/users/sergey81/)
 * (@sergey81)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/)
 * Hello.
    Can I hide the post without translation?
 * Can I write something like this
 * <div
    <?php if( WPGlobus::… -> … ) { ?> class=’hidden’ <?php } ?> >….</div>
 * ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-post-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Alex Gor](https://wordpress.org/support/users/alexgff/)
 * (@alexgff)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/#post-12375754)
 * There is module Publish as part of WPGlobus Plus
    [https://wpglobus.com/product/wpglobus-plus/#publish](https://wpglobus.com/product/wpglobus-plus/#publish)
    -  This reply was modified 6 years, 4 months ago by [Alex Gor](https://wordpress.org/support/users/alexgff/).
 *  Thread Starter [sergey81](https://wordpress.org/support/users/sergey81/)
 * (@sergey81)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/#post-12375780)
 * I think must be a free way to do this.
    For exemple:
 * …
    $post_link = get_post_permalink();
 * $post_text = file_get_content( $post_link );
 * if( $post_text…. ){
    … } is it?
 * Can I take one translation on page of other translation?
 *  Plugin Support [Alex Gor](https://wordpress.org/support/users/alexgff/)
 * (@alexgff)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/#post-12376356)
 * To get any kind of content in the current language (post title, post content,
   meta value, etc.), you can use the `text_filter` function
    [https://github.com/WPGlobus/WPGlobus/blob/develop/includes/class-wpglobus-core.php#L24](https://github.com/WPGlobus/WPGlobus/blob/develop/includes/class-wpglobus-core.php#L24)
 *     ```
       $content_in_current_language = WPGlobus_Core::text_filter ($content_with_language_marks, WPGlobus::Config()->language, WPGlobus::RETURN_EMPTY);
       ```
   
 * If `$content_in_current_language` is empty, it means that the translation does
   not exist.
    You can replace `WPGlobus::Config()->language` with any value from`
   WPGlobus::Config()->enabled_languages` array.
 *  Thread Starter [sergey81](https://wordpress.org/support/users/sergey81/)
 * (@sergey81)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/#post-12378224)
 * Sorry, it’s too hard for me.
 * There is code:
 * <?php
    if (have_posts()) { while (have_posts()) { the_post(); the_title(); the_content();}}
   How to check another translation empty is? Is it posible?

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

The topic ‘hide post’ is closed to new replies.

 * ![](https://ps.w.org/wpglobus/assets/icon-256x256.png?rev=1069705)
 * [WPGlobus](https://wordpress.org/plugins/wpglobus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpglobus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpglobus/)
 * [Active Topics](https://wordpress.org/support/plugin/wpglobus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpglobus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpglobus/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [sergey81](https://wordpress.org/support/users/sergey81/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/hide-post-7/#post-12378224)
 * Status: resolved