Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author AndyWarren

    (@awarren)

    Can you give me an admin login to the WordPress backend to take a look?

    Plugin Author AndyWarren

    (@awarren)

    If you can provide me an admin login you can email it here so its not public.

    Plugin Author AndyWarren

    (@awarren)

    I don’t see the first required shortcode in your WP editor anywhere.

    [aw_year_links cat="X" postslug="slug-to-post-or-page"] is also required. The postslug attribute needs to be the slug to the page that you have the second shortcode on. The first one sends a query string in the URL and the second one uses that query string to filter out posts by year before displaying them.

    I’m going to configure the plugin in your WP install for you to see how it should work.

    Plugin Author AndyWarren

    (@awarren)

    Ok, So I replaced the the category slugs in both shortcodes with the category IDs, and added a piece of code to the plugin file via the plugin editor to show which category each post belonged to. It you use the plugin you’ll notice small link right above the post title that says the category name. I went through each year, and think it is working correctly, but please have a look and verify that the correct posts are displaying in the correct year.

    Before you remove my temporary admin login I’ll need to remove that piece of code I added tot he plugin file, so let me know if the plugin is now working as expected.

    Thread Starter billsall54

    (@billsall54)

    Yes, it IS working – thank you… I am hoping I can style the dropdown so it’s in descending, rather than ascending order… just haven’t looked at that yet – i am assuming i can.

    THANK YOU SO MUCH ANDY… I think my problem was the Category ID – and you mentioend that and it slipped right past me… sorry for the trouble

    Plugin Author AndyWarren

    (@awarren)

    No Worries, you’re very welcome, and I’m glad its working for you. In case anyone else has this issue, its important to use the same category IDs in both shortcodes.

    Changing the order of the dropdown would have to be done in the plugin code unless you sorted them with jQuery/JS after they have all loaded. That’s actually a pretty good idea though, I’ll add it to my next update!

    I’ll go in and remove my code snippet from the plugin file and then log out so you can delete the temporary login. Let me know if you run into any other issues.

    Plugin Author AndyWarren

    (@awarren)

    I updated the plugin to show the dates from newest to oldest. That seems much more logical, not sure why I didn’t do that earlier. Thanks for the idea!

    Go ahead and update to v1.2.6 to get this new sort order.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posts Not Filtering by Selected Category’ is closed to new replies.