Content Marketing

Marubucin WordPress: Addara Shirya Fayil ɗin Fayil idan aka Shiga ciki

Ina so in sabunta shafin yanar gizo na WordPress kuma in kara bangaren 'Game da Marubucin' a karkashin kowane sako. Ya kasance mafi wuya fiye da yadda nake tsammani - kuma a zahiri yana buƙatar ƙarin shirye-shirye, amma ga farkon yanke:

Mawallafin: Yanar Gizo: Game da:

Na gaba, Na duba don ganin ko da gaske wani ya shiga kuma ya nuna hanyar Shirya Bayanan martaba don haka mutum zai iya dannawa da sabunta bayanan su (Na sabunta wannan sakon… babban bayani da tambaya daga Ajay!):

">Shirya Profile

Na kara da aji = ”marubuci” ga zanen salon don yayi kyau sosai.

Ina so in tsabtace lambar don kada in nuna adireshi ko bayani idan babu; Koyaya, Ina tsammanin zan rubuta ainihin tambayoyin zuwa bayanan don wannan. Lura da hanyar "Shirya Profile"… an nade shi da wani bayani idan zai bayyana shi ne kawai idan mai amfani ya shiga. Ina tsammanin yana da kyau, don haka ina so in raba muku idan kuna son amfani da shi!

Douglas Karr

Douglas Karr shine wanda ya kafa Martech Zone da ƙwararren ƙwararren masani akan canjin dijital. Douglas ya taimaka fara farawa MarTech da dama masu nasara, ya taimaka a cikin ƙwazo na sama da dala biliyan 5 a cikin saye da saka hannun jari na Martech, kuma ya ci gaba da ƙaddamar da nasa dandamali da sabis. Shi ne co-kafa Highbridge, Kamfanin tuntuɓar canji na dijital. Douglas kuma marubuci ne da aka buga na jagorar Dummie da kuma littafin jagoranci na kasuwanci.

11 Comments

  1. Barka dai Ajay!

    Ba na so in nuna hanyar haɗin bayanan Edit sai dai idan wani ya shiga ciki. Don haka aikin get_currentuserinfo() zai dawo da bayanan mai amfani kuma idan bayanin ya tabbatar idan mai amfani na yanzu yana da user_id… hanya ce ta bincika ko a'a. suna shiga.

    A wasu kalmomi - idan kun shiga, kuna ganin hanyar haɗi don gyara bayanin martaba. Idan ba haka ba, ba kwa ganin wannan hanyar haɗin yanar gizon.

    Doug

  2. Sannu Doug,
    kawai kuna mamakin shin kun san yadda zan iya amfani da wannan ya dogara da mai amfani wanda ya shiga?
    Don haka idan mai amfani ya shiga JohnSmith zai nuna 'A' kuma idan mai amfani ya shiga BillBob zai nuna 'B'?

    Thanks!

    1. Hi Mike,

      Na tabbata cewa $user_id mai canzawa zai dawo da ainihin ID ɗin mai amfani a cikin sashin Masu amfani da ku a cikin admin. Don haka kuna iya gina bayanin shari'ar idan ma'ana….

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

      Ban gwada wannan ba amma na tabbata cewa dole ne ku sanya shi a cikin yanayin aikin get_currentuserinfo.

      Doug

  3. Sannu Doug. Godiya ga rabawa. Abin takaici, wannan lambar ba ta yi aiki a gare ni ba:

    Shirya
    Profile

    Na yi amfani da lambar da ke ƙasa a maimakon. Lokacin da mai amfani ya shiga, "My Profile" zai nuna. Lokacin da babu wani mai amfani da ya shiga, "Createirƙiri Asusun" ya bayyana.

    <? php idan (shine_user_logged_in ()) {
    samu_currentuserinfo ();
    amsa kuwwa ('My Profile');
    }
    wasu {
    amsa kuwwa ('Haifar da wani Asusun');
    };
    ?>

    Kawai son yin tarayya idan wani yana buƙatarsa. Da fatan za a cire sarari tsakanin "<" da "?" don lambar tayi aiki.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.

shafi Articles