Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • HOW? 🙂

    hi, tried adding custom post type with:

    add_action( 'init', 'create_events' );
    function create_events() {
      $labels = array(
        'name' => _x('Events', 'post type general name'),
        'singular_name' => _x('Event', 'post type singular name'),
        'add_new' => _x('Add New', 'Event'),
        'add_new_item' => __('Add New Event'),
        'edit_item' => __('Edit Event'),
        'new_item' => __('New Event'),
        'view_item' => __('View Event'),
        'search_items' => __('Search Events'),
        'not_found' =>  __('No Events found'),
        'not_found_in_trash' => __('No Events found in Trash'),
        'parent_item_colon' => ''
      );
    
      $supports = array('title', 'editor','excerpt', 'custom-fields','revisions','thumbnail','author','page-attributes');
    
      register_post_type( 'event',
        array(
          'labels' => $labels,
          'public' => true,
          'supports' => $supports
        )
      );
    }

    used page-attributes but no luck – parent dropdown not showing. Also tried theme switch to default and back, still nothing.

    What im missed? 🙂

    thank you

    hi, i have same issue: posts, pages are cached, but custom posts not
    even i few times reload that custom page.

    Any ideas? Thanks

    revert

    (@revert)

    hi, i have same problem,
    googled about this and there is solution with plugin WP mail SMTP plugin here, but i dont want other plugins to owerwrite entire mail function in WP,
    i have other sites on mz localhost and mail works normal.

    there must be any settings direct in WP to setup mail,
    or PHP setup?

    if i ported the site to server, mail is sended.

    any suggestions?

    {win7, xampp 1.7, ff4}

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