Event Planner Template Category Blog - Missing Articles - Forum | JoomShaper
Solved General

Event Planner Template Category Blog - Missing Articles

Asked by Sensible IT Solutions 3 years ago Last activity 2 years ago

I am using the Event Planner Category Blog.
It is not showing all published articles.

I have 3 published but it'll only show 2. It randomly selects which ones it will/won't show. If I add another blog that one may show or it may show an older one that previously wasn't showing

All other category blogs on other templates work fine

I have checked all category blog settings and they're all correct.

Accepted answer

Marked as the solution
Toufiq Senior Staff

Please check now. Now. I just updated this code from this file location.

templates/eventplanner/html/com_content/category/blog.php

<?php if (!empty($this->intro_items)) : ?>
        <?php $blogClass = $this->params->get('blog_class', ''); ?>
        <?php if ((int) $this->params->get('num_columns') > 1) : ?>
            <?php $blogClass .= 'cols-' . (int) $this->params->get('num_columns'); ?>   
        <?php endif; ?>
        <div class="article-list">
            <div class="row row-<?php echo $counter + 1; ?> <?php echo $blogClass; ?>">
            <?php foreach ($this->intro_items as $key => &$item) : ?>
                <?php if ($key > 0) : ?>
                <div class="col-lg-<?php echo round(12 / Helper::SetColumn($this->params->get('num_columns'), 4)); ?>">
                    <div class="article"
                        itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
                        <?php
                        $this->item = & $item;
                        echo $this->loadTemplate('item');
                        ?>
                    </div>
                    <?php $counter++; ?>
                </div>
                <?php endif; ?>
            <?php endforeach; ?>
            </div>
        </div>
    <?php endif; ?>

To

<?php if (!empty($this->intro_items)) : ?>
        <?php $blogClass = $this->params->get('blog_class', ''); ?>
        <?php if ((int) $this->params->get('num_columns') > 1) : ?>
            <?php $blogClass .= 'cols-' . (int) $this->params->get('num_columns'); ?>   
        <?php endif; ?>
        <div class="article-list">
            <div class="row row-<?php echo $counter + 1; ?> <?php echo $blogClass; ?>">
            <?php foreach ($this->intro_items as $key => &$item) : ?>
                <div class="col-lg-<?php echo round(12 / Helper::SetColumn($this->params->get('num_columns'), 4)); ?>">
                    <div class="article"
                        itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
                        <?php
                        $this->item = & $item;
                        echo $this->loadTemplate('item');
                        ?>
                    </div>
                    <?php $counter++; ?>
                </div>
            <?php endforeach; ?>
            </div>
        </div>
    <?php endif; ?>

-Thanks

3 more replies

Toufiq Senior Staff

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Will you please provide me the Joomla Supper administrator access to check the issue? I will check & get back to you soon. 

-Thanks

Sensible IT Solutions Asked this

Hi Toufiq,

Changed user initially provided to super user

Thanks
Stacy

Log in to reply.