Kaituhi WordPress: Taapirihia he Hononga Whakatika Whakatika Mena kua Whakauru koe

wordpress logo

I hiahia ahau ki te whakahou i tetahi papanga WordPress me te taapiri i te waahanga 'Mo te Kaituhi' i raro i nga pou katoa. He uaua ake i taku i whakaaro ai - me tino nui ake nga hotaka, engari anei te tapahanga tuatahi:

Te Kaituhi: Paetukutuku: Mō:

Muri iho, ka tirohia e au mena kua uru mai tetahi ki roto ka whakaatu i tetahi hononga Whakatika Whakaahua kia pai ai te patene me te whakahou a te tangata i ana korero (I whakahoutia e au tenei panui… nga korero me nga patai mai i Ajay!):

">Whakatika Profile

I taapirihia e au te akomanga = "kaituhi" ki te pepa taera kia pai te ahua.

Kei te hiahia ahau ki te horoi i te waehere kia kore e whakaatu i tetahi wahitau, korero ranei mena kaore kau; Heoi, e whakaaro ana ahau me tuhi e au nga paatai ​​tuuturu ki te paataka maatauranga mo tenei. Kia mahara ki te hono "Whakatika Profile"… he takai ki te kore he korero e whakaatu ana mena kua uru mai te kaiwhakamahi. Ki taku whakaaro he hauhautanga, no reira i hiahia ahau ki te tohatoha atu ki a koe mena kei te hiahia koe ki te whakamahi!

11 Comments

  1. 1
  2. 2

    Kia ora Ajay!

    Kaore au e hiahia ki te whakaatu i te hono Whakatika Whakaahua ki te kore tetahi kua uru atu. Na ko te mahi get_currentuserinfo () ka whakahoki mai i nga korero a te kaiwhakamahi, a, mena ka kii te korero mena he kaiwhakamahi_id te kaiwhakamahi o naianei… he tikanga tirohia he mena kua uru ratou

    I etahi atu kupu - mena kua uru koe ki roto, ka kite koe i tetahi hono hei whakatika i to tohu. Mena kaore koe, kaore koe e kite i tena hono.

    Doug

  3. 3
  4. 4
  5. 5
  6. 6

    Kia ora Doug,
    miharo noa kei te mohio koe me pehea e taea ai e au te whakamahi i tenei ki te kaiwhakamahi kua uru atu raanei?
    Na mena ko te kaiwhakamahi i whakauruhia ko JohnSmith ka whakaatu 'A' ana mena ko te kaiwhakamahi i uru ko BillBob ka whakaatu 'B'?

    Mihi!

    • 7

      Hi Mike,

      Kei te tino mohio ahau ka whakahokia mai e te taurangi $ user_id te ID Kaiwhakamahi tuuturu i roto i nga waahanga Kaiwhakamahi kei te kaiwhakahaere. Na tera pea ka taea e koe te hanga korero keehi mena he arorau….

      if ($user_id=="1") { echo "Doug"; }

      Kaore au i whakamatauhia tenei engari he tino mohio me tuku e koe ki roto i te horopaki o te mahi get_currentuserinfo.

      Doug

  7. 8
  8. 10

    Kia ora Doug. Mauruuru mo te tohatoha. Heoi, kaore i pai tenei waehere ki ahau:

    Whakatika
    Kōtaha

    I whakamahia e ahau te waehere i raro nei hei utu. Ka uru ana te kaiwhakamahi ki roto, ka whakaatuhia “Taku Profile”. Ka kore he kaiwhakamahi e whakauru, “Waihangahia he Pūkete” ka puta.

    <? php mena ka (is_user_logged_in ()) {
    get_currentuserinfo ();
    oro ('toku Profile');
    }
    atu [
    oro ('Waihanga i te Pūkete');
    };
    ?>

    Ka hiahia noa ki te tohatoha mena ka hiahia tetahi atu. 🙂 Tangohia koa te waahi i waenga i te "<" me te "?" kia pai ai te waehere.

  9. 11

He aha koutou whakaaro?

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