WordPress.org

Ready to get started?Download WordPress

Forums

SuperCPT
[resolved] add keywords and categories (6 posts)

  1. faresalhdaleel
    Member
    Posted 10 months ago #

    thanks a lot, but i have some questions :

    1- how i can use media and browse my media into my site ?

    i used this code

    `<img src="<?php echo get_post_meta($post->ID, 'media' , true); ?>" />

    but noting show .

    2- how i can add keywords and categories for this custom posts?
    3- how i can change a language of lables (Add new , set media , etc...)

    thanks

    http://wordpress.org/plugins/super-cpt/

  2. Matthew Boynes
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Faresalhdaleel,
    Before I begin, I'd actually offer that this plugin may not be for you. There are numerous plugins for custom post types and meta fields, and this one is for programmers who are very familiar with PHP and are comfortable diving into the plugin's code to see how some of these things work. If you check out the FAQ, I make a few recommendations for other plugins that accomplish the same task. This plugin isn't a great fit for everyone -- in fact, it's only a great fit for a very small percentage of the WordPress population. So if you choose not to use it, I won't be offended :-). That said,

    1. The media field type stores the attachment ID. You'd then use that attachment ID as usual.
    2. I'm not 100% sure I understand the question, but you can read the wiki for thorough instructions on adding all field types.
    3. Language support actually isn't great because of the dynamic nature of this plugin (I thought I had added the i18n support properly, but actually did not). You can override the labels when setting the post type arguments, which is your best bet.

    Cheers,
    Matt

  3. faresalhdaleel
    Member
    Posted 10 months ago #

    thanks , i am a wp theme designer and i know about wp php codes that i need to use in my theme , and i search about this custom fields and post types since 8 months ago .
    but i not need to use other plugins , because i want to set my own custom fields on my theme and share it , without the user need to add plugins and set the fields name that i use it on my theme .
    about question 2 , i mean when i add a custom post type and try to add post , i not see place to add a keywords and select a categories .
    i normal mode we use :
    `'taxonomies' => array('category', 'post_tag')
    what we can use to add post tag and categories with CPT ?
    hope help . thanks ..

  4. Matthew Boynes
    Member
    Plugin Author

    Posted 10 months ago #

    You can set all the same properties that you can with regsiter_post_type. Here are instructions to do so: https://github.com/mboynes/super-cpt/wiki/Changing-Post-Type-and-Taxonomy-Parameters

  5. faresalhdaleel
    Member
    Posted 10 months ago #

    thanks
    i cant add post tags and categories
    can u help me ?
    i use this code
    `$fast->supports( array( 'title', 'editor', 'category', 'thumbnail', 'post_tag') );

  6. faresalhdaleel
    Member
    Posted 10 months ago #

    thanks all done

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.