Hi @fmeynardgmailcom,
Thanks for your message.
Not currently, no. However, you should be able to re-create your permalink structure using an assortment of shortcodes.
Hope this helps.
Hi The problem that i am experiencing when combining the shortcodes is that i use thepost_category…which does the trick… most of the time, however, i have categories that have multiple words and spaces in the categories name… which as you can problem see where i am going with this, produces ugly looking links. To give you an example, we have a category called Parks and Places, when using the category name shortcode as a link it gives me: /category/parks%20and%20pets and i am struggling trying to find a fix for this… can you guide me in the right direction?
Hi @fmeynardgmailcom,
You could set-up some redirects to cater for situations such as these.
Does this help?
it would take over 400 category redirects. Is there a way i can pull the actual category slug? Do you have a snippet i can add to my fuctions.php file that would allow me to retrieve this, you can obliviously pull info like, Author, article name, categories, permalink and such… I think it would be a nice addition to the plugin.
Here is what my current email link looks like:
We published your article “[post_title]”
on our website on [post_date],
can be found under the “[post_category]” category.
The boss wants category to be a link instead of the title in order for the author to see their contribution on the list of of articles for such category… in hopes that they dont just view their article and leave, but that they might see other recent articles and choose to open them too.
Hi @fmeynardgmailcom,
Ok, that’s fair enough.
I’ve added the category slug to the roadmap for BNFW however, for now, you should be able to add it using a custom shortcode. Details of how to add one can be found in this support document: https://betternotificationsforwp.com/documentation/adding-custom-shortcodes/
Does this help?
Could you help me out… I tried adding this to the functions.php, but after running some test i ended up breaking things and wasnt able to retrieve the category slug properly. What am I missing?
function get_post_category_slug( $slug ) {
$category = get_term_by( ‘slug’, $slug, ‘category’ );
if ( $category )
_make_cat_compat( $category );
return $category_slug;
}
add_filter(‘wp_mail’, function($args) {
$args[‘post_category_slug’] = do_shortcode($args[‘post_category_slug’]);
return $args;
}, 1, 1);
Hi @fmeynardgmailcom,
I’m sorry, I can’t offer help with custom code. You may need to enlist the help of a developer to get this working.
In the meantime, i’m hoping to add this native shortcode soon.