WordPress.org

Ready to get started?Download WordPress

Forums

New to PHP/Wordpress, Help!! (1 post)

  1. lduvall
    Member
    Posted 1 year ago #

    I am trying to list out 2 categories worth of posts. So tab one will be Students with posts of the students category. The second tab will be Staff Faculty with posts of the staff faculty category. I have this working with the help of WP UI. It displays the tabs with the posts as accordion items.

    I need this to display only the items with the current date as the post date. I also need these to open as a dialog instead of accordion items.

    Can someone please help? I feel like there is a function I could write to make this work, but I am completely lost. Here is the current page's code as it stands now.

    <div class="announce">
    <h1 class="announceHeading">Announcements </h1>
    </div>
    <div>[wptabs style="wpui-custom" mode="horizontal"][wptabtitle]Faculty & Staff[/wptabtitle] [wptabcontent][wptabposts type="accordion" style="wpui-redmond" effect="slide" mode="horizontal" number="30" cat="6"][/wptabcontent][wpdialog style="wpui-custom" auto_open="false" openlabel="Submit an Announcement" width="700" height="650" post="190" modal="true"][wptabtitle]Students[/wptabtitle] [wptabcontent][wptabposts type="accordion" style="wpui-redmond" effect="slide" mode="horizontal" number="30" cat="5"][/wptabcontent][wpdialog style="wpui-custom" auto_open="false" openlabel="Submit an Announcement" width="700" height="650" post="190" modal="true"][/wptabs]</div>

Topic Closed

This topic has been closed to new replies.

About this Topic