• úvod
  • témata
  • události
  • tržiště
  • diskuze
  • nástěnka
  • přihlásit
    registrace
    ztracené heslo?
    QUITEwordpress
    KOCMOC
    KOCMOC --- ---
    KOCMOC: to asi nezabere, ale jeden nikdy nevi... btw jak mas nastaveni breadcrumbs v yoastu, pohral sis tam s tim?
    KOCMOC
    KOCMOC --- ---
    CRS1138: zkus 'has_archive' => false dat na true
    CRS1138
    CRS1138 --- ---
    Pouzivam Yoast SEO Breadcrumbs a mam nasledujici strukturu:

    -local-volunteer-groups (page)
        |
        - Salobreña (CPT post)
        |
        - Castel de Ferro (CPT post)
        |
        - Almuñecar (CPT post)
    


    Problem: Kdyz jsem na strance zobrazujici CPT post (napr. Salobreña), pak se mi breadcrumbs zobrazuji jako

    Home > Salobreña


    ale ja chci, by byly

    Home > Local Volunteer Groups > Salobreña


    Muj CPT registration is:

    
      // Register Custom Post Type
      function register_local_support_cpt() {
    
        $labels = array(
          'name'                  => _x( 'Local Volunteer Groups', 'Post Type General Name', 'acompalia' ),
          'singular_name'         => _x( 'Local Volunteer Group', 'Post Type Singular Name', 'acompalia' ),
          'menu_name'             => __( 'Local Volunteer Groups', 'acompalia' ),
          'name_admin_bar'        => __( 'Local Volunteer Groups', 'acompalia' ),
          'archives'              => __( 'Local Volunteer Group archives', 'acompalia' ),
          'parent_item_colon'     => __( 'Parent Item:', 'acompalia' ),
          'all_items'             => __( 'All Local Groups', 'acompalia' ),
          'add_new_item'          => __( 'Add New Group', 'acompalia' ),
          'add_new'               => __( 'Add New', 'acompalia' ),
          'new_item'              => __( 'New Group', 'acompalia' ),
          'edit_item'             => __( 'Edit Group', 'acompalia' ),
          'update_item'           => __( 'Update Group', 'acompalia' ),
          'view_item'             => __( 'View Group', 'acompalia' ),
          'search_items'          => __( 'Search Item', 'acompalia' ),
          'not_found'             => __( 'Not found', 'acompalia' ),
          'not_found_in_trash'    => __( 'Not found in Trash', 'acompalia' ),
          'featured_image'        => __( 'Featured Image', 'acompalia' ),
          'set_featured_image'    => __( 'Set featured image', 'acompalia' ),
          'remove_featured_image' => __( 'Remove featured image', 'acompalia' ),
          'use_featured_image'    => __( 'Use as featured image', 'acompalia' ),
          'insert_into_item'      => __( 'Insert into item', 'acompalia' ),
          'uploaded_to_this_item' => __( 'Uploaded to this item', 'acompalia' ),
          'items_list'            => __( 'Items list', 'acompalia' ),
          'items_list_navigation' => __( 'Items list navigation', 'acompalia' ),
          'filter_items_list'     => __( 'Filter items list', 'acompalia' ),
        );
        $rewrite = array(
          'slug'                  => 'local-volunteer-groups',
          'with_front'            => false,
          'pages'                 => false,
          'feeds'                 => false,
        );
        $args = array(
          'label'                 => __( 'Local support groups', 'acompalia' ),
          'description'           => __( 'Local support groups', 'acompalia' ),
          'labels'                => $labels,
          'supports'              => array( 'title', 'editor', 'comments' ),
          'hierarchical'          => false,
          'public'                => true,
          'show_ui'               => true,
          'show_in_menu'          => true,
          'menu_position'         => 5,
          'menu_icon'             => 'dashicons-groups',
          'show_in_admin_bar'     => false,
          'show_in_nav_menus'     => false,
          'can_export'            => true,
          'has_archive'           => false,
          'exclude_from_search'   => true,
          'publicly_queryable'    => true,
          'query_var'             => 'local_suport_group',
          'rewrite'               => $rewrite,
          'capability_type'       => 'page',
        );
        register_post_type( 'local_suport_group', $args );
    
      }
      add_action( 'init', 'register_local_support_cpt', 0 );
    
    CRS1138
    CRS1138 --- ---
    KOCMOC: ten prave zkousim, ale nejak to tu stranku nevidi, jeste proctu ten manual
    KOCMOC
    KOCMOC --- ---
    CRS1138: ja mel hodne dobry zkusenosti s timhle, ale nereknu ti z hlavy, jestli to naplnuje tvuj pozadavek... umi se to nahookovat do wp search query a delat s tim kejkle

    Relevanssi - A Better Search — WordPress Plugins
    https://wordpress.org/plugins/relevanssi/
    CRS1138
    CRS1138 --- ---
    KEPASO: diky zkusim
    KEPASO
    KEPASO --- ---
    CRS1138: https://wordpress.org/plugins/search-everything/ v nastaveni je moznost vyrazeni post id, ale asi se pak nezobrazi ani v tech vysledcich, jak potrebujes. no zkus.
    CRS1138
    CRS1138 --- ---
    CRS1138: zkousim Relevanssi plugin (free), ale ten danou stranku nenajde.
    CRS1138
    CRS1138 --- ---
    Resil jste tu nekdo (@KOCMOC napr.) search na WP?
    Mam web, kde na About strance jsou 3 WP_queries. Tito zobrazuji data z 3 ruznych CPT.

    Existuje nejaky plugin, ktery by dokazal zobrazit mezi search results tuto stranku, pokud search dotaz smeruje na kontent ktery je v jednom nebo vice z tech postu v tech CPT? A zaroven nezobrazoval vysledky jednotlivych CPT postu, protoze tyto se nikde na tom webu samostatne nezobrazuji.
    KOCMOC
    KOCMOC --- ---
    KEPASO: tohle je vyzivny:
    Theme's text domain & language.PO file not working - WordPress Development Stack Exchange
    http://wordpress.stackexchange.com/questions/137427/themes-text-domain-language-po-file-not-working
    KEPASO
    KEPASO --- ---
    KOCMOC: no u zabiase jsem deaktivoval vsechny pluginy, prepnul na zakladni sablonu. u twenty fifteen se stalo co pisu, ale treba u twenty thirteen nebylo prelozeny ani to.
    KOCMOC
    KOCMOC --- ---
    To me dycky sere, jak si to hrabe do jinejch jazykovejch souboru, nez si myslim haha. Vesmes preklady v pluginech, savlonach vs globalni slozka languages
    KEPASO
    KEPASO --- ---
    KEPASO: podobnej problem mam i na lokalu. kdyz aktivuju sablonu twenty fifteen, pak mam sice prelozenej pocet komentaru, ale logged in je neprelozeny.
    KEPASO
    KEPASO --- ---
    ZABIAS: jsem se na to dival, prelozeny v /wp-content/languages/cs_CZ.po to je, prislusnej mo soubor nahratej je. zvlastni.
    ZABIAS
    ZABIAS --- ---
    sory za tak velkej screen :)
    ZABIAS
    ZABIAS --- ---
    prosím nevíte kde bych přeložil toto: v ničem to nemůžu najít

    KOCMOC
    KOCMOC --- ---
    nemate nekdo na heureka.cz recenze v overeno zakazniky? potreboval bych neco testnout, dejte mi vedet treba do posty, diky moc.
    ERED_MITHRIN
    ERED_MITHRIN --- ---
    KOCMOC: :D To se bude implementovat az v dalsi fazi (spolu s udajema z platebni karty)

    KOCMOC: Diky, mrknu
    KOCMOC
    KOCMOC --- ---
    ERED_MITHRIN: jinak inspirace:
    Auto fill my custom form using facebook data - Stack Overflow
    http://stackoverflow.com/questions/14050528/auto-fill-my-custom-form-using-facebook-data
    Kliknutím sem můžete změnit nastavení reklam