• Resolved ulrslo

    (@ulrslo)


    Hi!
    We are installing this nice plugin but we can’t see any text!
    I have added to single post.
    It now looks like this:
    <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    <div class=”entry-thumbnail”>
    <?php the_post_thumbnail( ‘advent-calendar-full-image’ ); ?>

    <?php if ( is_single() ) : ?>
    <h1 class=”entry-title”>
    <?php the_title(); ?> </h1>
    <?php else : ?>
    <h1 class=”entry-title”>
    ” rel=”bookmark”><?php the_title(); ?>
    </h1>
    <?php endif; // is_single() ?>

    And in functions php I have added:
    function acal_change_post_type_params( $custom_post_type_params ) {
    $custom_post_type_params[‘supports’] = array(
    ‘title’,
    ‘editor’,
    ‘thumbnail’
    );
    return $custom_post_type_params;
    }
    add_filter( ‘pvb_acal_cpt_params’, ‘acal_change_post_type_params’ );

    Can someone please advice?

    I want to put a text and a link with the picture in every entry.

    Best regards Ulrika

    https://wordpress.org/plugins/advent-calender/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paul Vincent Beigang

    (@bassgang)

    Hi,

    Copy the single custom template to your theme folder and it should be fine, since it will be used automatically and already contains the code to output the editor content.

    From the FAQ: “If you want to use a custom template for a single advent calender entry (the “detail view”) copy “wp-content/plugins/advent-calendar/public/views/single-advent-calendar-entry-custom.php” to your theme folder, i.e. “wp-content/themes/YOUR-THEME/single-advent-calendar-entry-custom.php”.”

    Does it work for you?

    Thread Starter ulrslo

    (@ulrslo)

    Hi!
    No 🙁 I have put it there, but no difference. Just the picture that shows up.

    Thread Starter ulrslo

    (@ulrslo)

    Yes!! Now I got it working! Thanks a lot!

    Plugin Author Paul Vincent Beigang

    (@bassgang)

    Congrats!

    What was the exact Problem?

    Please share your solution so others can also benefit from your experience – thanks.

    Thread Starter ulrslo

    (@ulrslo)

    Hi!
    There was two files that were very similar in the name single-advent-calendar-entry-custom so I took wrong file. So when I checked it again, it soleved it 🙂 Thankyou so much!
    Ulrika

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

The topic ‘Can't see any text?’ is closed to new replies.