Cu custom fields spre cer
-
Upload
dan-stefancu -
Category
Technology
-
view
475 -
download
1
description
Transcript of Cu custom fields spre cer
![Page 1: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/1.jpg)
Cu custom fields spre cer
Un zbor scurt
![Page 2: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/2.jpg)
![Page 3: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/3.jpg)
Cine sunt?
Dan – Lucian Stefancu Web developer Blogger Iubitor de WordPress
![Page 4: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/4.jpg)
Ce NU sunt custom fieldurile?
Nu sunt niste chestii complicate Nu sunt taguri Nu sunt categorii
![Page 5: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/5.jpg)
Ce sunt custom fieldurile?
Niste campuri speciale/aditionale :) Informatii suplimentare ce pot fi
adaugate posturilor
![Page 6: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/6.jpg)
![Page 7: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/7.jpg)
![Page 8: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/8.jpg)
![Page 9: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/9.jpg)
Avantaje Custom fieldurile sunt simplu de folosit Se pot adauga nenumarate informatii
suplimentare unui post Informatiile sunt stocate personalizat Informatiile se pot afisa oriunde (chiar si in
feed) Se pot genera (usor) queryuri dupa custom
fields Custom fieldurile se pot ascunde (sic!) de
ochii userului
![Page 10: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/10.jpg)
Dezavantaje
Pot incarca foarte mult baza de date Sunt greu de inteles pentru incepatori Au un renume prost :)
![Page 11: Cu custom fields spre cer](https://reader036.fdocument.pub/reader036/viewer/2022062308/558763c5d8b42a7a2b8b4744/html5/thumbnails/11.jpg)
De retinut add_post_meta($post_id, 'nume_camp', ‘valoare'); delete_post_meta($post_id, 'nume_camp'); get_post_meta($post_id, 'nume_camp', true);