|
|
| Upload and attach a 'featured' image to any registered custom post types and call it via shortcode or template tag in your theme. Wordpress Tutorial |
|
Noted That:
|
|
Start the Tips:
Step-1 : Download " custom-post-types-image.zip " to Your Local Computer. Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.
Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.
Step-4 : Now, Click on " Upload Plugin " button.
Step-5 : Now, Browse " custom-post-types-image.zip " Downloaded plugin from your computer, Where you downloaded " custom-post-types-image.zip " According to Step – 1 Above then, click on " Install Now "
Step-6 : Now, Click on " Active Plugin "
Step-7 : Then, See left Side Menu. " Custom Post Types Image " folder is added on left Side Menu. Now, Click on " Custom Post Types Image " folder. Noted that: If you do not see " Custom Post Types Image " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ". Step-8 : Now you configure yourself oR Watch video tutorial below about Custom Post Types Image Configurations and Settings or How to work " Custom Post Types Image " in your WordPress site. oRAfter Activated Plugin According to Step-6 then,
|
| Guide |
|---|
As a shortcode. Put [cptImage] wherever you want the image to appear. Not that in this usage (without a parameter) it will only appear when you are on a single item of that custom post type OR in the archive page itself. To call any attached image, use [cptImage cpt=”Custom Post Type Name”]. In PHP in your template. To retrieve the image url to a variable, use get_cptimage_image($optionalname, $echo) (you can use get_cptimage_image(“Custom Post Type Name”) to retrieve a specific post type image, or get_cptimage_image(“Custom Post Type Name”, true) to echo the url rather than retrieving it. To merely display the image, call cptimage_image(“Custom Post type Name”) or simply cptimage_image(). Not that if you do not pass a post type name it will only appear when you are on a single item of that custom post type OR in the archive page itself. Please note, as with every plugin or theme modification, you should do a backup of your files beforehand. Although we’ve tested this across many installs, we are not responsible for anything it does to your system and do not guarantee support. |
| Name |
|---|