Replies
- Tosin on October 14, 2022 at 7:39 am in reply to: [Resolved] Using code to set category on publishing with BuddyBlog Pay Per Post not working #46972
Thanks for the feedback sir, correction noted
Hello the problem came from here
register_taxonomy(‘Post Type’, ‘post’, array(
it should be like this
register_taxonomy(‘post_type’, ‘post’, array(
This are the 2 codes below being used as two different plugins
LOCATION TAXONOMY PLUGIN
<?php /** Plugin Name: WP Taxonomy - Location Version: 1.0 Author: WordPress Description: Craete a new location taxonomy to organise content */ function create_post_location_taxonomy() { // Add new "Locations" taxonomy to Posts register_taxonomy('location', 'post', array( // Hierarchical taxonomy (like categories) 'hierarchical' => true, // This array of options controls the labels displayed in the WordPress Admin UI 'labels' => array( 'name' => _x( 'Locations', 'taxonomy general name' ), 'singular_name' => _x( 'Location', 'taxonomy singular name' ), 'search_items' => __( 'Search Locations' ), 'all_items' => __( 'All Locations' ), 'parent_item' => __( 'Parent Location' ), 'parent_item_colon' => __( 'Parent Location:' ), 'edit_item' => __( 'Edit Location' ), 'update_item' => __( 'Update Location' ), 'add_new_item' => __( 'Add New Location' ), 'new_item_name' => __( 'New Location Name' ), 'menu_name' => __( 'Locations' ), ), // Control the slugs used for this taxonomy 'rewrite' => array( 'slug' => 'post-location', // This controls the base slug that will display before each term 'with_front' => false, // Don't display the category base before "/locations/" 'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/" ), )); } add_action( 'init', 'create_post_location_taxonomy', 0 );
POST TYPE TAXONOMY PLUGIN
<?php /** Plugin Name: WP Taxonomy - Post Type Version: 1.0 Author: WordPress Description: Craete a new post type taxonomy to organise content */ function create_post_type_taxonomy() { // Add new "Post Types" taxonomy to Posts register_taxonomy('Post Type', 'post', array( // Hierarchical taxonomy (like categories) 'hierarchical' => true, // This array of options controls the labels displayed in the WordPress Admin UI 'labels' => array( 'name' => _x( 'Post Types', 'taxonomy general name' ), 'singular_name' => _x( 'Post Type', 'taxonomy singular name' ), 'search_items' => __( 'Search Post Types' ), 'all_items' => __( 'All Post Types' ), 'parent_item' => __( 'Parent Post Type' ), 'parent_item_colon' => __( 'Parent Post Type:' ), 'edit_item' => __( 'Edit Post Type' ), 'update_item' => __( 'Update Post Type' ), 'add_new_item' => __( 'Add New Post Type' ), 'new_item_name' => __( 'New Post Type Name' ), 'menu_name' => __( 'Post Types' ), ), // Control the slugs used for this taxonomy 'rewrite' => array( 'slug' => 'post-type', // This controls the base slug that will display before each term 'with_front' => false, // Don't display the category base before "/Post Types/" 'hierarchical' => true // This will allow URL's like "/Post Types/public/" ), )); } add_action( 'init', 'create_post_type_taxonomy', 0 );
Thanks Ravi
This is resolved
WOW REALLY AWESOME
Just tested the code and it works perfectly
Thanks Brajesh & Ravi
- Tosin on October 9, 2022 at 11:22 am in reply to: Buddypress user blog post manager layout suggestion #46902
My challenge Brajesh is not really the layout but displaying the post list/manager in a dedicated standalone page and not in user profile.
I want it similar to how medium.com post manager is displayed in a dedicated page
Wow thanks Brajesh, ill be looking forward to the new update
- Tosin on October 6, 2022 at 10:29 pm in reply to: Buddypress user blog post manager layout suggestion #46809
Any update on this
Thanks
Hello Brajesh
I’ll like to remind you about this suggestion
- Tosin on September 19, 2022 at 12:42 pm in reply to: Buddyblog pay per post (NEW SUGGESTION – PROMOTE OLD CONTENT) #46579
Thanks for the feedback
1. This is just a suggestion for future use
2. It was a typo error I meant page redirect to either cart or checkout