Wordpress Tweaks
Enable “custom field” field after install AFC
After you install AFC plugin https://www.advancedcustomfields.com/ your option for custom field will disappear, this snippet is solution to enable it back, just put inside your function.php in your child theme:
Read MoreGet Custom Field Value with Shortcode
Get custom field to show inside current post or page in wordpress, just put this code inside function.php in your child theme
Read MoreCreate WP Logout url in menu
How to remove admin bar for users in wordpress
Native PHP Explode For Each
If you use custom field in wordpress, sometime need run the custom field into some function. Output:Car: Volvo, Price: 100Car: BMW, Price: 100Car: Toyota, Price: 100
Read MoreHow to Add Placeholder to Your Comment Form in WordPress
If you need some tutorial about how to Add Placeholder to Your Comment Form in WordPress, you can put inside function.php And this is the comment part:
Read MoreList all images of media gallery in your wordpress page
If you need list all images of media gallery in your wordpress page, for any purpose like media files audit, you can use this code snippet, can put into excel then just do the audit
Read MoreDisable WordPress Categories, User, Tag, and Date Slug
When you need run wordpress with good SEO practical, you need to remove slug permalink for categories, user tag and date slug. just copy script bellow into your theme function.php file…
Read More