Hangaia nga Waehere Poto mo ta maatau kaupapa WordPress

Mai i te tiimata i tenei kaupapa, i te hiahia tonu kia whai taatau ake tohu, na reira ko te tauira tuarua e whakamahia ana e maatau Mai i Linux, na matou i hanga 100%.

Ka whai ake etahi atu panui, ahakoa ka taea e taatau te hoko me te riihi i etahi ratonga paetukutuku ranei hei hanga i a maatau hoahoa penei StudioDWeb.com, te hoko tauira ranei kua oti te hanga i roto ThemeForest.net, Kua hiahia tonu maatau ki te whai ake, ki te urutau ki o maatau hiahia me te mutu WebDevelopment.com Ka taea te awhina 😀

Heoi, ko taku hiahia mo te Hoahoa Paetukutuku me te Whakawhanake, a kei te mahi ahau i te kaupapa hou mo Mai i Linux a maku e whakaatu ki a koe etahi Whakaahuamata me pehea te ahua.

Ko te whakaaro kia kaua e puta i nga mea kua taunga ke ki a taatau, he maha nga waahanga e noho rite ana, e peera ana ranei. Ka tiimata au me te whaarangi kaainga

Whakaahuamata-dl

Ana koinei te ahua o nga tuhinga:

Whakaahuamata-dl-pou

Kei te kite koe, he mea tika ki a maatau mehua me he mea hou ta maatau Shortcode mo te whakamarama i nga tuhinga.

Koina ahau i whakaaro ai ki te whakaputa ki a koe me pehea te hanga i tetahi (ko nga korero tetahi) mena kei te hiahia koe ki te whakauru i a raatau ki o kaupapa o WordPress. Ko taku korero tenei:

Koinei te tauira ShortCode

Ehara ahau i te tohunga ki nga mahi hotaka me tenei CMS, no reira kaore au e kaha ki te whakamarama he aha me pehea te mahi penei, ka whakaatu noa ahau i a koe me pehea te mahi, waa.

Mo tenei ka whakamahia e matou te «maripi a te ope taua a Switzerland» o WordPress, Ko taku korero ko te konae mahi.php e kitea ana e tatou i roto i nga kaupapa katoa.

Taiapa_Hinga

Tauira o te Mahi.php me nga Waehere Poto o DesdeLinux

Ko ta maatau e mahi ai i tenei konae ko te taapiri i te hanganga o to WaeherePoto me te tikanga, te tapanga e whakaatu ana. Na kia haere tatou ki reira.

Kei Roto i te Mahi.php

Kei roto i ta maatau konae mahi.php ko ta maatau ka waiho ko te hanganga HTML o te ShortCode, engari ehara i te mea noa ki te waiho i nga tohu HTML penei. Ka penei ta maatau:

// Info info infobox ($ atts, $ content = null, $ code = "") {$ return = ' '; $ whakahoki. = $ ihirangi; $ whakahoki. = ' '; whakahoki $ whakahoki; } // Ko te WaeherePoto tāpiri_shortcode ('info', 'infobox');

Mai i konei ka whakamarama maatau i etahi mea e rua. Tuatahi, ka whakamahia ana e maatau nga tutaki e rua ka korerohia e maatau te raina, na reira // Mōhiohio he korero noa iho.

Ko te ingoa o te mahi, i tenei keehi pouaka korero Ka taea te whakarereke ki ta maatau e hiahia ana, engari me uru ki te ingoa e whakamahia ana e tatou i te raina whakamutunga.

I roto i ia $ whakahoki ka hoki taatau he aha nga tohu HTML, me maumahara taatau i muri o te tuatahi, me taapiri he waa ki mua o te tohu rite ka mutu te raina me te tohu o semicolon

Hei tauira:

$ whakahoki. = $ ihirangi;

Kakano $ ihirangi ko te mea ma te taunoa nga korero i maka e taatau ki roto i te PotoToto ka whakahoki mai he uara kore ki te kore tatou e tuu i tetahi mea.

Na, ko te ingoa o te WaeKorero te mea kua whakaritea e matou:

add_shortcode( 'info', 'infobox' );

Te wahi ka taea e koe te whakarereke info mo ta maatau e hiahia ana. Na, kia rite ki te tauira me tuu e tatou:

[ info ]Este será el ShortCode de ejemplo[ /info ]

Ahakoa te tikanga, mena kaore nga waahi, i tukuna atu e au na te mea he maarama ka whakamahia te ShortCode.

Kāhua WaeherePoto

Mena ka titiro koe ki te raina o runga ake nei, kaore he waehere PHP me nga taurangi, te PotoToto kei roto i te HTML parakore he penei penei:

<div class="alert-info"></div>

Na me whakamahi noa taatau CSS.

.alert.alert-info {papamuri: # d9edf7 url (info.png) kore-korero 7px 50%; radius rohe: 4px; rohe: 1px totoka # bce8f1; tae: # 3a87ad; rahi momotuhi: 14px; tohu: 15px 15px; padding: 15px 15px 15px 50px kuputuhi-taatai: taha maui}

Ana koira .. Ka tuuturu ano ahau, ehara au i te kaitaomatua, i tetahi mea pera ranei, a ko nga whakamarama kua tukuna e au me pehea taku mohio kei te mahi te ShortCode


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

9 korero, waiho maau

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra.

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   toenga72 ka mea

    He pai ki ahau te ahua, ka mihi atu ki a koe.

    1.    elav ka mea

      Mauruuru, he tawhiti noa atu to kei a koe engari me mihi.

  2.   Rogers ka mea

    Tino pai !! He pai ki ahau te kaupapa penei i taku WP.
    Ka mihi au ki a koe!

    1.    elav ka mea

      Kaore ano kia whakatakotoria e au, ka taea e au te hoko atu ki a koe HAHAHAHAHA .. Whakataakiri noa 🙂

  3.   Manuel E. ka mea

    Pai rawa, whakawhetai ki te tohatoha.
    Ko tenei momo rauemi e tino hiahiatia ana i runga i te paetukutuku, e maarama ana nga mea.

    Mauruuru!

  4.   eliotime3000 ka mea

    Hoahoa ataahua. Tirohia mena mo taku paetukutuku ka taea e koe te homai i tena tauira hei whakarite.

  5.   raweni291286 ka mea

    e taea te mahi i roto i tohinoá?

  6.   javier ka mea

    Ana, kaore, kua oti ke i ahau te ahua kaore e mahi maau, he aha pea? : /

    Hoatu e ahau [info] korero [/ info]

    ana kei taku pou panui te kupu anake: he korero, kua ngaro nga awhi, ki taku whakaaro kei he tetahi: /

    1.    Johnny Silva ka mea

      Akene kei roto i to tauira kaore i te whakaatuhia nga Waehere Poto i te mahi.php penei i taku keehi, ka taapirihia e au enei uara ki roto i te konae e kiia ana ko nga shortcodes.php, ko taku ake kaupapa

bool(pono)