WordPress.org

Ready to get started?Download WordPress

Forums

WP Calendar
[resolved] Category Sorting (8 posts)

  1. samplona
    Member
    Posted 1 year ago #

    hi,

    i try to make a list of events of one category on a page.
    i try different code, but al i get is a list of al event's.
    i also discovered the number of the category's but dit also not worked.
    {events_printlist; categories="43"}
    this is the code i used, wath goes wrong?

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

  2. dsg257
    Member
    Posted 1 year ago #

    try
    {events_list categories="43"}
    make sure the category is the same as you have in the posts catergories

  3. samplona
    Member
    Posted 1 year ago #

    hi,

    i try this code, but did not work, i see no events with this code.
    the number of the category is good and the same as the events.
    did i checked in the database.

  4. faebu
    Member
    Plugin Author

    Posted 1 year ago #

    i made several tests and filtering allways worked. make sure you use the correct category id, because there is confusing mix between category and term id (category is a term).

    To get the correct category id, goto Post -> Categories

    Look at the url, which the category is linked to. You'll find the category id in the url (tag_ID).

    http://localhost/wordpress/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=8&post_type=post

  5. samplona
    Member
    Posted 1 year ago #

    hi,

    i checked the category id several time, first at the event page en at the category page, both are 43.

    admin.php?page=wp-alendar/fsCalendar.php&event_category=43
    edit-tags.php?action=edit&taxonomy=category&tag_ID=43&post_type=post

    when i try to filter, i see no event.
    {events_printlist categories="43"}
    {events_printlist event_category="43"}

    when i use this one i see al the events.
    {events_printlist}

  6. faebu
    Member
    Plugin Author

    Posted 1 year ago #

    did you separate the filter by a semicolon?

    the correct line would be

    {events_printlist; categories="43"}

  7. samplona
    Member
    Posted 1 year ago #

    no, i did not,

    with the correct line is it working.

    thanks for the support.

  8. samplona
    Member
    Posted 1 year ago #

    no, i did not,

    with the correct line is it working.

    thanks for the support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic