Forums

Code not working (3 posts)

  1. StoreMyPic
    Member
    Posted 2 years ago #

    I am trying to use most read news in home page So when i

    use the text which is in BOLD below its not working

    <?php popular_posts('prefix=<div class="top_reads"><h5>What's new</h5>

      &suffix=
    </div>&limit=5&output_template=
  2. <div><h6>{title}</h6></div><div class="clear"></div>
  3. &excluded_cats=3,6&no_text=true&age-direction=after&age-length=30&age-duration=day'); ?>

    and when i replace that text without (') it works

    <?php popular_posts('prefix=<div class="top_reads"><h5>Most Read Stories</h5>

      &suffix=
    </div>&limit=5&output_template=

  4. <div><h6>{title}</h6></div><div class="clear"></div>
  5. &excluded_cats=3,6&no_text=true&age-direction=after&age-length=30&age-duration=day'); ?>

    Can any one suggest me a solution

  • esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Are you adding this php code in the post content area within the HTML or Visual editors? Or to a page template?

  • StoreMyPic
    Member
    Posted 2 years ago #

    i have this in page template

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.