Php 设置/更改magento博客上最近可见的帖子数
我正在使用magento 1.9.2.0中的MDL博客。。。我的博客页面只显示最近的10篇文章,同样的事情也发生在右侧的栏中。。我想在页面和侧边栏上显示所有帖子。 我的代码是:Php 设置/更改magento博客上最近可见的帖子数,php,magento-1.9,blogs,Php,Magento 1.9,Blogs,我正在使用magento 1.9.2.0中的MDL博客。。。我的博客页面只显示最近的10篇文章,同样的事情也发生在右侧的栏中。。我想在页面和侧边栏上显示所有帖子。 我的代码是: <?php if ($posts = $this->getRecent()): ?> <div class="menu-recent magicat-container"> <ul class="listStyle">
<?php if ($posts = $this->getRecent()): ?>
<div class="menu-recent magicat-container">
<ul class="listStyle">
<?php foreach ($posts as $post): ?>
<li><span><a href="<?php echo $post->getAddress(); ?>" ><?php echo $post->getTitle(); ?></a></span></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
请同时共享getRecent()函数代码,然后我将为您提供解决方案。sidebar.php文件中的最新代码Hmm此函数中未定义限制,因此您可以同时共享此函数的代码吗?getBlogWidgetRecentCount()$\u helper->getRecentPage()