WordPress.org

Ready to get started?Download WordPress

Forums

Calendar Category
Use as a template tag? (6 posts)

  1. chavo
    Member
    Posted 1 year ago #

    Is there a way to use the plugin as a template tag instead of a widget?

    Thanks in advance.

    http://wordpress.org/extend/plugins/calendar-category/

  2. chavo
    Member
    Posted 1 year ago #

    I figured out!

  3. seekndestroy88
    Member
    Posted 1 year ago #

    also please share

  4. chavo
    Member
    Posted 1 year ago #

    Hi!

    Well...I copied the plugin's code into my functions.php archive. I hard code it to filter cat I wish (look at this line):

    function calcat_get_calendar( $initial = true, $echo = true, $category = CATEGORY ID )

    "CATEGORY ID" = your category id.

    Then I paste the code in my template as follows:

    <?php calcat_get_calendar(); ?>

    I also ajaxify the calendar!

    I hope this helps to you.

    ps: sorry for my english.

  5. seekndestroy88
    Member
    Posted 1 year ago #

    Thanks chavo for the very prompt response .. it solves my problem :)

  6. chavo
    Member
    Posted 1 year ago #

    Mmmm...now I not getting days with posts as link :(

    Edit: I figured out that I doesn't work with future posts...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.