Tagged: 

This topic contains 10 replies, has 2 voices, and was last updated by  Steve 1 year, 5 months ago.

  • Author
    Posts
  • #8625

    dprophitjr
    Participant

    1. Use same tax/cat on pages.
    2. User Editor
    a. User can checkmark cats/tax of interest
    3. UI is within the user and role subscriber to edit.

    Related: https://piklist.com/learn/doc/getting-started-taxonomies-piklist/

  • #8626

    dprophitjr
    Participant

    what functions do I need to add to accomplish this?

  • #8629

    Steve
    Keymaster
    • #8631

      dprophitjr
      Participant

      Here’s the idea cooking up: Rss2html mailchimp newsletter and for CRM export so that we know what interests them the most. ofc, other things can be done in filtering to segments from taxonomy. so the existing taxonomy is display to user and they check/save taxonomy that matters to them. Helps identify personas as well for in-market segments.

  • #8632

    dprophitjr
    Participant

    The user does not define their own. It’s is merely array echoed out to them for what is their favorites

  • #8633

    Steve
    Keymaster

    So you want a taxonomy for users?

  • #8634

    dprophitjr
    Participant

    I guess I phrased it wrong. WP Site sets up the cats/taxonomies that are the same for page&post. Inside user account, check mark the taxonomies that matter to you. Collect data to use in marketing about your users from taxonomies that mattered to them. [ if user checks ‘wordpress’] taxonomy, add to newsletter segment => wordpress.

  • #8635

    dprophitjr
    Participant
    function add_taxonomies_to_pages() {
     register_taxonomy_for_object_type( 'post_tag', 'page' );
     register_taxonomy_for_object_type( 'category', 'page' );
     }
    add_action( 'init', 'add_taxonomies_to_pages' );
  • #8636

    dprophitjr
    Participant

    So if I have wooCommerce setup and tags and cats for dining room and tags of dining tables, china, cutlery, etc and user checks interests in china, cutlery, I have actionable intelligence as to what interests them more on my site after they register and save taxonomy data.

  • #8637

    dprophitjr
    Participant

    We would then need an archive paged called reports with option to csv/xml name, email, tag terms as contact tags to crm

  • #8642

    Steve
    Keymaster

    You can’t share taxonomies between object types, like CPTs and Users. Use something like this:

    
    function my_register_taxonomy_for_cpts() {
      register_taxonomy_for_object_type('post_tag_user', 'post');
      register_taxonomy_for_object_type('category_user', 'page');
    }
    add_action('init', 'my_register_taxonomy_for_cpts');
    

You must be logged in to reply to this topic.