Replies
Thanks. But will this code be permanently deleted after the plugin is updated?
And yet I do not understand how I can publish news and other entries from the admin panel of the site so that they are not in the blog. With any publication in the admin panel, all entries have the form https://site.com/users/user123/buddyblog/my-posts/26718 and when you click on the link, just the admin’s blog with the nickname user123 opens. why? How I can make that the entries from the admin panel are not related to the blog?
- This reply was modified 1 year, 8 months ago by Van.
Thank you. I realized that it was necessary to include the choice of the category when publishing. I thought it would work without it.
OK, then another question. Now, if you publish any news from the admin panel, they are published in the blog, and not on the pages of the site, how can this be changed?
And one more question – is it possible to change the text of “buddyblog” to “blog” in blog links. And “my-posts” on “posts”?
Maybe I’m doing something wrong. I have created a new category “Blogs”. In the link, her id is 31. And then I specified 31 in your code, which I added to the site. After that, I tried to publish a blog entry, but it was published not in “blogs”, but in the “news” section.
Sorry, but i dont understand what i need change in this code if i need only one category for blogs?
add_filter( ‘buddyblog_post_form_settings’, ‘buddyblog_show_custom_cats’, 100 );
function buddyblog_show_custom_cats( $settings ) {
$tax = array();$tax[‘category’] = array(
‘taxonomy’ => ‘category’,
‘view_type’ => ‘checkbox’,
‘include’ => array( 1, 35,97 ),
‘orderby’ => ‘slug’,
‘order’ => ‘ASC’
);$settings[‘tax’] = $tax;
return $settings;
}- This reply was modified 1 year, 8 months ago by Van.