Horje
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:

  • To install correctly this custom-post-types-image.zip .
  • Fisrt Download the custom-post-types-image.zip to your computer
  • Extract/Open custom-post-types-image.zip to Your Computer.
  • Then, Find readme.txt file inside custom-post-types-image.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " custom-post-types-image.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Custom Post Type Images " folder is added on left sidemenu. Now, Click on " Custom Post Type Images " folder.

   Noted that: If you do not see " Custom Post Type Images " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Custom Post Type Images Configurtions and Settings or How to work " Custom Post Type Images " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Custom Post Type Images " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Custom Post Type Images
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Upload cptImages directory to your /wp-content/plugins/ directory
  2. Activate the Custom Post Type Images plugin through the ‘Plugins’ page in WordPress
  3. Go to Tools > Manage Custom Post Type Images.
  4. To use, select an image for the custom post type and attach. You can then use the image in various ways:

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

Read Article
https://develop.horje.com/learn/1434/reference