BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 900

    Thanks for the feedback sir, correction noted

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] Buddyblog support #46953

    Hello the problem came from here

    register_taxonomy(‘Post Type’, ‘post’, array(

    it should be like this

    register_taxonomy(‘post_type’, ‘post’, array(

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] Buddyblog support #46952

    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 ); 
  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] Buddyblog code adjustment #46928

    Thanks Ravi

    This is resolved

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: Buddyblog post title checker #46912

    WOW REALLY AWESOME

    Just tested the code and it works perfectly

    Thanks Brajesh & Ravi

  • Participant
    Level: Guru
    Posts: 900
    Tosin on 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

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: Buddyblog post title checker #46901

    Wow thanks Brajesh, ill be looking forward to the new update

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: Buddypress user blog post manager layout suggestion #46809

    Any update on this

    Thanks

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: Buddyblog post title checker #46808

    Hello Brajesh

    I’ll like to remind you about this suggestion

  • Participant
    Level: Guru
    Posts: 900
    Tosin on 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