Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kenordiz

    (@kenordiz)

    Just bought the plugin the plugin is showing some errors on the pay slip page Fatal error: Call to undefined function money_format() in D:\xampp32\htdocs\test\wp-content\plugins\business-manager\includes\functions.php on line 266

    • This reply was modified 6 years, 8 months ago by kenordiz.

    Hi i have this code to be added after the while loop this code is for hiding posts that are meant for specific subscribers
    <?php
    /* Get the post’s acceptable viewer. */
    $flautist_access = get_post_meta($post->ID, ‘smashing_flautist_access’, true );
    /* Get the post’s current viewer, if he or she is logged in. */
    if(is_user_logged_in()) {$current_flautist = $current_user->user_login;}
    /* See if the acceptable viewer and the current viewer are the same */
    if($flautist_access == $current_flautist || current_user_can(‘author’) || current_user_can(‘editor’) || current_user_can(‘administrator’))
    {
    ?>

    <div class=”clearfix”>
    <div class=”content files large-12 medium-12 small-12 columns”>
    <div class=”large-3 medium-3 columns thumbnail-image”>
    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail(‘thumbnail’);
    } else {
    ?>
    <img src=”<?php bloginfo(‘template_directory’); ?>/img/thumb.jpg” alt=”Thumbnail Logo” />
    <?php } ?>
    </div>
    <div class=”large-9 medium-9 small-12 columns”>
    <header>
    <h1>“><?php the_title(); ?></h1>
    <span class=”date”><?php the_date(); ?></span>
    </header>
    <?php the_excerpt(); ?>
    </div>
    </div>
    <?php } else { echo ”; } ?>

    when i add this to the repeater template it does not work how can i add that that it works?

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