REQUIRED: Zip file found. Plugins are not allowed in themes. The zip file found was b_shortcode.zip tgm-example-plugin.zip.

Bundle Plugin with the Themes →

REQUIRED: Zip file found. Plugins are not allowed in themes. The zip file found was b_shortcode.zip tgm-example-plugin.zip.

there is one plugin developed for the shortcode. How should I integrate that in my theme because w/o it the theme shortcodes won’t work?

You can ignore that message

upload your plugins on your server and require them by TGM
don’t attache your plugins in theme main files

2 Likes
		// This is an example of how to include a plugin from an arbitrary external source in your theme.
		array(
			'name'         => 'TGM New Media Plugin', // The plugin name.
			'slug'         => 'tgm-new-media-plugin', // The plugin slug (typically the folder name).
			'source'       => 'https://s3.amazonaws.com/tgm/tgm-new-media-plugin.zip', // The plugin source.
			'required'     => true, // If false, the plugin is only 'recommended' instead of required.
			'external_url' => 'https://github.com/thomasgriffin/New-Media-Image-Uploader', // If set, overrides default API URL and points to an external URL.
		),

This is one example given in the tmg example.php file, but I have few confusion →

I do not find the use of external URL and slug here →

'external_url' => 'https://github.com/thomasgriffin/New-Media-Image-Uploader', // If set, overrides default API URL and points to an external URL.


'slug'         => 'tgm-new-media-plugin', // The plugin slug (typically the folder name).

Any idea?

Should we ignore or delete these two?

This is a common issue with the Theme Check and reviewers here are ignoring this error message so as I suggested, you can upload your theme as it is.

Bundled plugins must be included via the TGM Plugin Activation class or a similar solution to manage plugin dependency. Plugins can be installed from WordPress.org, private repos or a bundled ZIP file.

1 Like

you can’t ignore the slug as its the unique name of the plugin
as if you calling it from the Wordpress plugin dir with out the external url , anyway you can delete the external_url if you don’t use it

and you can use source as url source for the url out of your server

You didn’t read my question correctly I am calling the plugin from the Amazon server nor WordPress repository.

	// This is an example of how to include a plugin from an arbitrary external source in your theme.

what ever server your calling from even if its from WordPress repository you can use source its not best practice tho if your dealing with WordPress repository .

anyway in your case you can call your plugin via source
for example

‘source’ => ‘http://rathemes.com/plugins/promedical/project.zip