Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter campatsky

    (@campatsky)

    Hey Jeff, thanks for the quick response. Do you have a recommendation for the best file to include sac.php on?

    Thread Starter campatsky

    (@campatsky)

    That would be very useful. Need any help with it?

    If you need help in setting up a custom template here is a two step process.

    Step 1: At the top of a file that you would like to be the template simply put –
    ‘<?php
    /*
    Template Name: (Your Template Page Name goes here)
    */

    (your code for the template page)

    ?>’

    Then save the file in your primary theme directory.

    Step 2: Go into wordpress and go into the page you would like to assign this template to. On right hand side you will see a Page Attributes sidebar/widget. Under Template, select the one you just created.

    Thread Starter campatsky

    (@campatsky)

    Here is the code generated by the custom post ui:

    add_action(‘init’, ‘cptui_register_my_taxes_interests’);
    function cptui_register_my_taxes_interests() {
    register_taxonomy( ‘interests’,array (
    0 => ‘page’,
    ),
    array( ‘hierarchical’ => true,
    ‘label’ => ‘Interests’,
    ‘show_ui’ => true,
    ‘query_var’ => true,
    ‘show_admin_column’ => true,
    ‘labels’ => array (
    ‘search_items’ => ‘Interest’,
    ‘popular_items’ => ”,
    ‘all_items’ => ”,
    ‘parent_item’ => ”,
    ‘parent_item_colon’ => ”,
    ‘edit_item’ => ”,
    ‘update_item’ => ”,
    ‘add_new_item’ => ”,
    ‘new_item_name’ => ”,
    ‘separate_items_with_commas’ => ”,
    ‘add_or_remove_items’ => ”,
    ‘choose_from_most_used’ => ”,
    )
    ) );
    }

    Thread Starter campatsky

    (@campatsky)

    Hi Michael, I tried all of the taxonomy outputs but only the built-in taxonomies are showing.

    these are the only taxonomies that appear:
    category
    post_tag
    nav_menu
    link_category
    post_format

    In the custom post ui manager i have 2 additional taxonomies – slugs: locations and interests. The locations taxonomy is accessible when i use get_terms(‘locations’) but the terms/tags in interests is not accessible at all. I get an invalid taxonomy error. Neither appears when I output a list of all the registered taxonomies.

    I only registered them through custom post ui, do I need to register them manually in my functions.php file as well?

Viewing 5 replies - 1 through 5 (of 5 total)