Forum Replies Created

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

    (@media-x-1)

    Hi Scott,

    Thank you. That worked a charm, saved me a stack of time having to use the manual approach.

    Thread Starter media-x

    (@media-x-1)

    Dear Lester,

    Thank you for the response :}, thumbs up for the fast comeback.

    I am using the PODS framework to create the loop. Your code snippet for some reason is no bringing the variable into play, I have been scratching my head all day and tried various methods of doing this with no result.

    Please see below my loop code:

    <div class=” entry-content-wrap”>
    <div class=”v-image”><img src=”{@vendor_image._src.large}” />
    </div>
    <div class=”col1″><?php echo the_ratings_results( get_the_ID() );?>
    <h3>{@post_title}</h3><span class=”mx-rating”>{@software_rating}</span>
    <div class=”mx-bsize”>Business Size: {@business_size.name}</div>
    <div class=”mx-url”>Weblink</div>
    <div class=”mx-cat”>Category: {@vendor_category.name}</div>
    </div>
    <div class=”col2″>
    <div class=”mx-platform”>Platforms:
    <span>{@software_platform.name}</span>
    </div>
    <div class=”mx-deploy”>Deployment:
    <span>{@deployment_where.name}</span></div>
    <div class=”mx-company”>Company: {@company}</div>
    </div>
    <div class=”col3″>
    <div class=”mx-hide”>
    <div class=”mx-price”>PRICE</div>
    <div class=”mx-demo”>DEMO</div>
    </div>
    <div class=”mx-more”>Learn More</div>
    </div>
    </div>
    <hr>

    When using the {@ID} I can echo post_id but am battling to pass this over to the php snippet.

    I have also tried:

    <?php echo the_ratings_results( ‘{@ID}’ );?> – Brings Blank Ratings

    <?php echo the_ratings_results.'(‘;?>{@ID}<?php echo ‘)’;?> – Brings the_ratings_results(228) – no ratings

    Please see here: https://dev10.mediax.co.za/software-vendors/design/

    Thank you for you assistance.
    Media-X

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