Nga Momo Panui Ritenga me nga waahanga Ritenga

wordPress

Kei te noho a WordPress hei papa tino nui ki nga kamupene maha, engari ko te kamupene toharite kaore e aro ki tetahi hautanga o nga pukenga. Ko tetahi o o taatau kaihoko i hiahia ki te taapiri i tetahi waahanga rauemi ki ta raatau papaanga engari kaore i pai ki te whakamahi i nga whaarangi kaore i nga tuhinga blog. Koinei tonu te mea e tautokohia ana e WordPress Momo Panui Ritenga hoki!

I tenei wa, i hiahia matou ki te taapiri i tetahi Wahanga Rauemi ki tetahi o o maatau papaanga. He maamaa noa te taapiri i a Momo Panui Ritenga ki to kaupapa kaupapa WordPress. Ka taapirihia e koe te waehere e whai ake nei ma te whakamahi i te mahi register_post_type ki o wharangi mahi.php:

// Add Add Ritenga Post Momo add_action ('init', 'create_post_type'); function create_post_type () {register_post_type ('resource', array ('labels' => array ('name' => __ ('Rauemi'), 'singular_name' => __ ('Rauemi'), 'add_new' => __ ('Taapiri Hou'), 'add_new_item' => __ ('Taapirihia he Rauemi Hou'), 'edit_item' => __ ('Whakatika Rauemi'), 'new_item' => __ ('Rauemi Hou'), 'all_items' => __ ('Katoa Rauemi'), 'view_item' => __ ('Tirohia te Rauemi'), 'search_items' => __ ('Rauemi Rapu'), 'not_found' => __ ('Rauemi Rawa Kitea'), 'not_found_in_trash' => __ ('Karekau he Rauemi i roto i te paru'), 'parent_item_colon' => '', 'menu_name' => __ ('Rauemi')), 'public' => pono, 'has_archive' => pono, 'rewrite' => array ('slug' => 'rauemi'), 'tautoko' => raupapa ('taitara', 'etita', 'kaituhi', 'karakōnui', 'excerpt', 'kōrero')) ; }

He uaua ake ki te rapu me pehea te mahi kāwai ritenga hoki koutou Momo Panui Ritenga. Ko tetahi take he uaua ki te rapu me pehea e mahi ai tenei na te mea e kiia ana he taake taake ritenga me te whakamahi i te rehita_taxonomy mahi hei whakarite. I tenei wa, kei te hiahia matou ki te taapiri i nga momo rauemi penei i te Paetukutuku, Papamuri, me era atu mea ki te kaupapa… no reira anei etahi atu taapiri mo nga konae mahi.php:

add_action ('init', 'resource_category_init', 100); // 100 na kua rehitatia te momo whakairinga resource_category_init () {register_taxonomy ('type', 'rauemi', raupapa ('tapanga' => raupapa ('ingoa' => 'Momo Rauemi', 'singular_name' => ' Momo Rauemi ',' search_items '=>' Rapu Rauemi Rau ',' popular_items '=>' Momo Rauemi Rongonui ',' all_items '=>' Katoa Rauemi Rauemi ',' edit_item '=> __ (' Whakatika Momo Rauemi ') , 'update_item' => __ ('Whakahou Momo Rauemi'), 'add_new_item' => __ ('Taapirihia he Momo Rauemi Hou'), 'new_item_name' => __ ('Momo Rauemi Hou')), 'hierarchical' => 'false', 'label' => 'Momo Rauemi')); }

Ko nga Momo Panui Ritenga e ahei ana koe ki te hoahoa i te koputu me nga whaarangi kotahi mo o momo Momo Panui Ritenga. Me kape noa i te archive.php me nga konae single.php. Whakaingoa ano i nga kape ki te Momo Panui Ritenga i roto i te ingoa. I tenei wa, ko tera te kohinga-rauemi.php me te rauemi-takitahi.php. Ka taea e koe te whakarite i ena whaarangi engari kei te hiahia koe kia tirohia te wharangi rauemi.

2 Comments

  1. 1

    Ko tetahi atu huarahi ko te whakamahi i te mono penei i nga Momo Ihirangi Ritenga Maamaa, Momo ranei.

    Ma enei mono e ahei ai koe ki te taapiri i nga pouaka taatai ​​ritenga me te hanga whaarangi whaarangi me te tuku tauira.

    • 2

      Tino pono @ google-d5279c8b66d25549a0ec3c8dd46a3d1a: disqus! He pono taku ki a au kei te rite ki nga taapiri e rua te taapiri i te tone ki runga i te tuhinga… a kaore e taea e koe te neke noa i tetahi kaupapa mai i tetahi papanga ki tetahi atu, me maarama koe ka neke ano koe i nga monomai. . Koinei noa te take ka mahi ahau ki te whakauru i nga mahi e tika ana ki nga konae kaupapa.

He aha koutou whakaaro?

Whakamahia ai e tenei pae i te Akismet hei whakaiti i te mokowhiti. Akohia te tukatuka o to raraunga korero.