AndyWarren
Forum Replies Created
-
Forum: Plugins
In reply to: [AW WordPress Yearly Category Archives] only category yearsHello, sorry for the late reply.
Make sure both shortcodes have the exact same ID in the
cat=""
parameter. Also make sure it’s a category ID that exists, otherwise you’ll probably get all categories.The “slug-to-post-or-page” should be the ending slug of the page for you have the second shortcode on. For example, it your full URL is
https://www.example.com/dogs/poodle/
your shortcode parameter would bepostslug="dogs/poodle"
.Forum: Plugins
In reply to: [AW WordPress Yearly Category Archives] udpated pluginHey, that’s great to hear. I likely won’t spend a lot of time with this plugin as it needs a refresh, probably from the ground up, but I just don’t have much free time to devote to it to be honest. It is on Github though, so if you’d like to fork it and submit a PR there I can definitely have a look at merging your changes into the plugin.
I’d like to know this too. I have custom validations using the gform_validation filter, and inside that filter’s function I have 3rd party API calls to validate user data. Can this still work with this plugin in real time?
Hey, sorry about the late reply on this. I’m not familiar with the 3rd party plugin you’re using, but I will try to install it this week and do some testing to see if I can replicate your issue.
That works, just remember it will get overwritten if you update the plugin. I’ll mark this resolved for now, please feel free to reopen if you need to.
Honestly the way the plugin is written there isn’t really a way to natively do it. You’d have to probably get into the template file and do a conditional maybe checking if the year query string parameter is present, and if not show all posts with a custom query, but if the year parameter is present then render the shortcode.
You would need to write a custom query to display the posts on that page, and then replace them with the yearly archive posts. This isn’t something built into the plugin.
Just to update here, there looks to be a couple small bugs in the code that I’ll need to work out. I will push an update as soon as I can.
Hello. I’m not sure what this could be, but I will try to take a look at the code and get a better idea. Would you be able to provide me with an admin login to your site so I can take a look? If so, you can email login credentials securely here: https://www.402websites.com/contact/.
Hello. Try replacing “Articles” in each shortcode with the the numeric ID of the category.
- This reply was modified 6 years, 9 months ago by AndyWarren.
I have updated the plugin to version 1.2.8. This includes the fix to the
get_post_types()
issue in this thread.Just to close the loop here, after investigating the code in your site, it looks like a bug of some sort in my plugin with
$postTypes = get_post_types( '', 'names' );
which is used in the function for both shortcodes the plugin uses. If logged out of WordPress the code is returning an empty array, so no links or posts are “gotten”.I’ll work on a fix and issue a plugin update soon. I’m marking this as resolved as I resolved it local to your install. Re-open if any other issues arise.
I just emailed you a question to you. I am able to reproduce your issue with not seeing the links when you are logged in. I can’t get to your theme template file via the WordPress theme editor due to it being in a directory and not root level. Please read and respond to my private email.
I need to take over the two pages you’re in if you would like me to investigate this further.
I don’t see the shortcodes on that page. Also, there are two shortcodes that need to be used.
The first shortcode is
[aw_year_links cat="X" postslug="slug-to-post-or-page"]
, which is used to build and display the year links.The second shortcode is
[aw_show_posts cat="X" readmore="Continue Reading" publishedon="n/j/Y"]
, which is used to display the post content after click a year link.The plugin will not work correctly without both shortcodes set up appropriately. Each shortcode needs the same category number, and the first shortcode needs the page slug that the second shortcode is on.