• Resolved Makabe

    (@makabe)


    Hi Dudo,
    I have a question about modifying yasr-shortcode-functions.php, exactly shortcode [yasr_top_ten_highest_rated].

    I try to show ranking of my reviews, but not with default post title and rating stars, but some data from custom fields, like:
    – different title (custom field my-title)
    – different rating (custom field my-rating)
    – post thumbnail (<?php the_post_thumbnail(); ?>)

    Does this code:
    <?php $values = get_post_custom_values(“XXXXXX”); echo $values[0]; ?>
    will work for this purpose?

    Greetings,
    Adrian

    https://www.ads-software.com/plugins/yet-another-stars-rating/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi Adrian,

    YASR doesn’t use custom fields, but it has it’s own table.

    If you’ve your different custom title you can, on line 683, replacing the default code witht this line

    $post_title = get_post_custom_values("YOUR_TITLE", $result->post_id)

    Best,
    Dario

    Thread Starter Makabe

    (@makabe)

    ok, thanks for quick answer ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying custom fields for [yasr_top_ten_highest_rated]’ is closed to new replies.