Diana van de Laarschot
Forum Replies Created
-
Hi Testerossa,
thank you for your message. I’m afraid I don’t understand what you want to achieve. Can you give an explicit example. For example, given the structure below, how do you want to display it?
Category A
– Post 1
– Post 2
– Subcategory A-1
— Post 3
— Post 4
Category B
– Post 5
– Post 6If what you want can be done with the plugin, I’ll try to explain how. If what you want is not supported, however, note that I am not going to extend the plugin any further at this time. I’m in the progress of working towards version 1.0 and will not incorporate new functionality until I’ve reached 1.0.
Kind regards,
DianaHi all,
implementing a “recursive” mode isn’t as simple as it sounds, but I’ve done some preliminary work. Would you be willing to test the current development version of the plugin?
I’ve added support for a skip parameter, as well as an option on what to do with subcategory posts. You can now choose to ‘exclude’ them. You will have to add the desired categories manually for now, but this allows you to avoid the situation in Shabith’s second post of this thread.
I.e. for category structure
Cat 1
Post 1
Cat 2
Post 2you can create in your menu
Cat 1 – set ‘exclude’ subcategory posts
Cat 2Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Replace category link with link to first postHi swinggraphics,
thank you for clarifying, glad that the duplicate posts isn’t an issue caused by my code.
If you grab the latest development version, the correct title should be displayed. Would you be so kind to review this again? I hope this resolves your question.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Replace category link with link to first postHi swinggraphics,
thank you for testing!
As I see from your screenshot, the category menu item does become a link to the first post, right? You’re right about the title, my fault, that obviously isn’t handled well. I’ll fix that ASAP.
What I find weird is that you get the first post three times: once in the category link, and twice in the dropdown list, while the query to retrieve the posts hasn’t changed at all in this update.. :S
Are you using custom taxonomies?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Replace category link with link to first postHi swinggraphics and rgbcraft,
I’ve just checked in a change into the development branch. Are you willing and able to review this?
Note the check-in comment, I haven’t implemented a new parameter. Instead, what you should be able to do now, is simply set number of posts to 1. Any items under the category will be moved to under this single post.
I’d appreciate it if you could test this. If approved, you can locally keep the development version until I bring out a new update that contains this new functionality as well. (I have two more things I want to do before I mark the plugin as version 1.0.0)
I’d love to hear from you.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Replace category link with link to first postThe instructions you gave are incomplete, but the effect is doable without new code by creating two category menu items: the first set to 1 post, uncheck “Create submenu”, remove navigation label, replace only if empty; the second as a child of the first, set to all posts, default navigation label, replace always. It’s a little convoluted, which is why I like the modification that does all that with one option choice.
I can’t reproduce this. If I add a post and uncheck ‘create submenu’ then there’s no reason to choose ‘replace only if empty’ because if you uncheck ‘create submenu’, then my plugin shouldn’t be doing anything.
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Show the whole archiveHi Sol1dus,
if it works, enjoy! 🙂
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Show the whole archiveHi Sol1dus,
your request is not the intention of my plugin and I cannot guarantee that the plugin will work correctly. It looks just fine, but be sure to test this thoroughly for posts that do not belong to a taxonomy.
I hope you find the plugin useful.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Replace category link with link to first postHi rgbcraft and Greg,
thank you for your feedback, I’ll take your requests seriously. I intend to incorporate this functionality into the plugin sometime this weekend, but only if I can find a neater way than putting it under ‘when to hide the item’. Perhaps the dropdown needs a rename and use the more general keyword ‘behavior’.
Anyway, I appreciate your feedback, I’ll do my best to make some modifications this weekend.
Kind regards,
DianaHi,
the idea itself is nice, but no, nothing like that is supported by WordPress at the moment, and therefore also not by my plugin.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Order Posts by Custom FieldHi amyra,
feel free to dig through the source code and make local changes.
Kind regards,
DianaHi Shabith,
ah, good point. I did not realize this when I suggested the solution. Right now there is no way to exclude posts from the category if they are also in a sub-category. When I have the time, I will look into this.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Doesn't work with WPML (multi language site)Response by WPML support team:
These plugins are not on our list of compatible plugins. You can look here for one that might work for you.http://wpml.org/documentation/plugins-compatibility/
Otherwise you will need to take extra steps to make them work.
Please read this document on making plugins compatible .
http://wpml.org/documentation/support/language-configuration-files/Forum: Plugins
In reply to: [Category Posts in Custom Menu] Order Posts by Custom FieldHi amyra,
thanks for your message.
Your request is interesting, but there are some issues that might be difficult to solve. For example, which custom fields would you want to be able to sort on? All of them? Just a few? It would mean I’d have to extend the user interface quite a lot..If I have some time, I’ll investigate, but I’m very hesitant to do this if it means a large change for a feature I’m not sure will be used a lot.
Kind regards,
DianaHi Shabith,
you can do this manually under Appearance > Menus.
Add ‘Category’ to your menu, check “Create submenu containing links to posts in this category.” and choose under “Remove original menu item” the option ‘Never’.
Then, under Category, you can add Cat A, Cat B, Cat C etc. Be sure to drag them all a little to the right, so that they really fall under Category.
Category
Cat A
Cat B
Cat CFor Cat A, B and C also check the checkbox and choose ‘Never’ from the dropdown.
Kind regards,
Diana