• Resolved ikookmaar

    (@ikookmaar)


    Hi,

    Your plugin seems very usefull, but I’d like to retrieve and display info on multiple plugins in a single post. Is this in any way possible with your plugin?
    Allthough there is only one plugin info box per post that accepts only a single slug,can the slug for a plugin be added to the shortcodes for instance?
    My goal is to create a single overview of used plugins on multiple sites and show all sorts of usefull info on plugin compatibility to help me decide if these sites are ready to upgrade to a new WP version…

    Thanks in advance

    Peter

    https://wordpress.org/plugins/plugin-info/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Nope this isn’t possible and I doubt it is something I’ll add. See here for some more info.

    Hello,

    Now you can provide the plugin info for many plugins on one page.

    Here’s how I solved this with three elements.

    1. Install this plugin (Plugin Info)

    2. Install Allow PHP in Posts and Pages

    3. Look at the code guides in both plugins and do something like this:

    Plugin Info Box Code

    <div class="plugin-info-box">
    <div><h5 class="small">all-in-one-favicon</h5></div>
    <div class="smaller"><strong>Requires:</strong> [php] plugin_info( 'all-in-one-favicon', 'requires' ); [/php]</div>
    <div class="smaller"><strong>Compatible:</strong> [php] plugin_info( 'all-in-one-favicon', 'compat_with' ); [/php]</div>
    <div class="smaller"><strong>Updated:</strong> [php] plugin_info( 'all-in-one-favicon', 'updated' ); [/php]</div>
    <div class="smaller"><strong>Downloads:</strong> [php] plugin_info( 'all-in-one-favicon', 'downloaded' ); [/php]</div>
    <div class="smaller"><strong>Version:</strong> [php] plugin_info( 'all-in-one-favicon', 'version' ); [/php]</div>
    <div class="smaller"><strong>Rating:</strong> [php] plugin_info( 'all-in-one-favicon', 'rating' ); [/php] stars of 5</div>
    <div class="smaller"><strong>Author:</strong> [php] plugin_info( 'all-in-one-favicon', 'author' ); [/php]</div>
    </div>

    And here’s the CSS I used:

    .plugin-info-box {
    	border: 1px solid #ccc;
    	padding: 12px;
    	float: right;
    }
    
    .small {
    	font-size: .95rem;
    }
    
    .smaller {
    	font-size: .75rem;
    }

    In my case, I wanted the info box to be right aligned, with a slightly smaller font.

    You can see this in action on three posts at KB4WP.com – Favorite WordPress Plugins.

    Best,

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘info on multiple plugins in one post’ is closed to new replies.