• Resolved nederkoorn

    (@nederkoorn)


    I’ve tried so many query calls and solutions from this forum. Nothing seems to work for me. With the RSS-Feed can i get the desired results:

    <ul>
          <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('https://url/to/events/feed'); // specify feed url
    $items = array_slice($feed->items, 0, 6); // specify first and last item
    ?>
          <?php if (!empty($items)) : ?>
          <?php foreach ($items as $item) : ?>
          <li>
            <a href="<?php echo $item['link']; ?>" target="_blank"><?php echo $item['title']; ?></a>
          </li>
          <?php endforeach; ?>
          <?php endif; ?>
        </ul>

  • The topic ‘events list outside plugin shows exactly the count u want’ is closed to new replies.