Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jozess

    (@jozess)

    Thank you. But it’s not exactly an option.
    That’s how works: <?php echo expand_ratings_template('%RATINGS_IMAGES% (%RATINGS_SCORE%)', get_the_ID(), '', '', false); ?>
    The question is closed.

    Thread Starter jozess

    (@jozess)

    I tried function:

    <?php echo expand_ratings_template('%RATINGS_IMAGES% (%RATINGS_SCORE%)', get_the_ID(), $is_main_loop = false); ?>

    Did not work out.

    How to pass a value of false?

    Thread Starter jozess

    (@jozess)

    Apply function WP_Query but nothing happened. Snippets are duplicated.

    <?php $orig_post = $post;
    global $post;
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
    $tag_ids = array();
    foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    $args=array(
    'tag__in' => $tag_ids,
    'post__not_in' => array($post->ID),
    'posts_per_page'=>5, // Number of related posts that will be shown.
    'caller_get_posts'=>1
    );
    $my_query = new wp_query( $args );
    if( $my_query->have_posts() ) {
    echo '<div id="relatedposts"><h3>Related Posts</h3><ul>';
    while( $my_query->have_posts() ) {
    $my_query->the_post(); ?>
    <li><div class="relatedthumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div>
    <div class="relatedcontent">
    <h3><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <?php the_time('M j, Y') ?>
    <?php if(function_exists('the_ratings')) { echo expand_ratings_template('<span class="rating">%RATINGS_IMAGES%</span>', get_the_ID()); } ?>
    </div>
    </li>
    <? }
    echo '</ul></div>';
    }
    }
    $post = $orig_post;
    wp_reset_query(); ?>
    Thread Starter jozess

    (@jozess)

    Yes, I tried to change, but to no avail.
    Before editing your code, I pereproval 15 plug-ins LightBox.
    None of them did not work correctly with LightBox.

    I was lucky I found. It https://ww.wp.xz.cn/plugins/fancy-box/

    Thread Starter jozess

    (@jozess)

    Record broken tag <! - nextpage ->

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