Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I believe part of your issue comes from using incorrect WordPress functions:
    the_ID() echoes the ID. You should be using get_the_ID() in that context
    the_title() should be get_the_title()
    the_excerpt() should be get_the_excerpt()
    – I’m not seeing the link, but I assume you’re using the_permalink() when you should be using get_the_permalink()

    Thread Starter mikec09

    (@mikec09)

    Thanks, I tried using the functions by using ‘get_the…’ but they all returned empty. what ended up working was the following:

    <div id=”post-<?php the_ID(); ?>” class=”webinar-wrap2″>
    <div class=”alignleft webinar-block”>
    <div class=”webinar-top”>
    <span class=”webinar-cat”><?php $category = get_the_category(); echo $category[0]->cat_name; ?></span>
    [a href=”<?php the_permalink(); ?>”><span class=”h2textblock”><?php the_title(); ?></span>
    </div>
    <div class=”webinar-bot”>
    <span class=”webinar-title”>
    <?php the_excerpt(); ?></span>
    [a href=”<?php the_permalink(); ?>”><button class=”btn btn-large btn-webinar btn-noline” type=”button”>View Webinar</button>
    </div>
    </div>
    </div>

    Not sure the difference but it works. In any case this plugin is a great resource.

    • This reply was modified 7 years, 4 months ago by mikec09.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dps-template’ is closed to new replies.