• I’m a Asp.net developer that is seriously considering switching to WordPress for my basic clients. clients. So just consider this a newbie question about WordPress.

    I have a site that auto publishes a monthly article on the main page as well as a “Quote of the Month.” The quote of the month exists as a side bar item of the main page where the monthly article resides. How can I tie these two entities together where if the user clicks on an archived article, the quote for that archived month will show on that page as well?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • I can’t say that I have done exactly this, but here is the approach I think will work.

    • Enable shortcodes in widgets by adding this line to functions.php: add_filter('widget_text', 'do_shortcode');.
    • Create the shortcode function in functions.php to display the quote based on the current month.
    • Add a Text widget containing the shortcode to the sidebar.
    • Use the Widget Logic plugin to restrict the widget to the Home page.
    Thread Starter rblythe

    (@rblythe)

    I’m so sorry for not responding sooner. WordPress and PHP is still new concepts for me but your idea sounds like a good start.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Scheduled content’ is closed to new replies.