• Resolved momentblick

    (@momentblick)


    Hello, i use a custom post type named “mikrofon”.
    I extended the usp_post_type() function by an array. It works. Now I would like to integrate the categories of this post type (taxonomy: “mikrofonkat”) to display the categories in the admin panel. In the usp_post_category_options () function, I extended the array $cats – $cats = get_categories (array (‘hide_empty’ => 0, ‘taxonomy’ => ‘mikrofonkat’)); Now I see these categories in the admin panel. Unfortunately, these are not displayed in the frontend, in the form. In which function can i influence the display and, last but not least, the storage of the categories? Thanks for help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help:

    “In which function can i influence the display and, last but not least, the storage of the categories?”

    The only recommended way of doing this would be to set up the custom USP form. You can find complete instructions in the plugin Installation documentation.

    Let me know if I can provide any further infos!

    Hello Jeff. How can I display my custom field (e.g. usp_custom_video) in a single-custom template.php?

    Plugin Author Jeff Starr

    (@specialk)

    @alexterrenas

    The easiest way is to use get_post_meta(), for example something like this inside the WP Loop:

    $usp_custom_video = get_post_meta(get_the_ID(), 'usp_custom_video', true);
    if (!empty($usp_custom_video)) echo $usp_custom_video;

    That is a simplified example, you will want to surround the output with the necessary markup to display as desired, etc. More infos and examples here:

    https://developer.ww.wp.xz.cn/reference/functions/get_post_meta/

    Thanks, it worked. And to add more fields you need to buy PRO? I understand correctly?

    Plugin Author Jeff Starr

    (@specialk)

    Yeah basically, but we’re not allowed to discuss pro versions here at ww.wp.xz.cn. So if you would like more infos on pro contact via the form at Plugin Planet, thank you.

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

The topic ‘Custom Post Type’ is closed to new replies.