if I want to make a post for categorys video and news I can select both in the editor.
Wordpress sets the main category for permalinks by the ID. So for me News is the lower ID. But in the flex-cat (over the picture) it shows me the second category. This is a problem because I want to say the main category for permalink and not the second one.
By the way: In admin panel there are only normal posts, video posts and image posts as post-types. It would be better to set it like the original one to have more possibilities ... why did you configure it only for standard, gallery and videos?
Hi,
if I want to make a post for categorys video and news I can select both in the editor.
Wordpress sets the main category for permalinks by the ID. So for me News is the lower ID. But in the flex-cat (over the picture) it shows me the second category. This is a problem because I want to say the main category for permalink and not the second one.
One good solution could be something like this:
if ( of_get_option('pm_parentcat') == 'end' ) {
//echo '<a href="'. get_category_link( end($category)->term_id ) .'">'. end($category)->cat_name .'</a>';
foreach((get_the_category()) as $category) {
echo '<a href="'. get_category_link( ($category)->term_id ) .'">'. ($category)->cat_name .'</a>';
}
}
this is in content.php!!!
By the way: In admin panel there are only normal posts, video posts and image posts as post-types. It would be better to set it like the original one to have more possibilities ... why did you configure it only for standard, gallery and videos?