h-enk/link-manager-free

WordPress plugin that displays your links in a simple and flexible way.

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

1.0.4 2019-04-09 08:34 UTC

README

Packagist Build Status

WordPress plugin that displays your links in a simple and flexible way.

Features

  • Add Links (custom post type) - Name, Description, URL, Target, and Categories
  • Add Categories (custom taxonomy) - Name
  • Supports Classic Editor and Block Editor
  • Show Links
    • All Links - shortcode [links]
    • Links of a specific category - shortcode [links lm-category="Term Name"]
  • No frontend stylesheet loaded - available classes: link-image, link-name, and link-category
  • Use custom links template

Requirements

  • PHP >= 7.1
  • Wordpress >= 5.1

Installation

You can install this plugin via the command-line or the WordPress admin panel.

via Command-line

If you're using Composer to manage WordPress, add Link Manager to your project's dependencies.

composer require h-enk/link-manager-free

Then activate the plugin via wp-cli.

wp plugin activate link-manager-free

via WordPress Admin Panel

  1. Download the latest zip of this repo.
  2. In your WordPress admin panel, navigate to Plugins->Add New
  3. Click Upload Plugin
  4. Upload the zip file that you downloaded.

Usage

  • Add Links and Link Categories
  • Insert shortcode [links] or [links lm-category="Term Name"] in your page.

Styling

Define the available classes in your themes' stylesheet: link-image, link-name, and link-category.

Use custom template

The [links] shortcode includes the template from templates/shortcode-links.php. If you'd like to use a custom template, copy shortcode-links.php into the templates/ directory in your theme and also implement the following example snippet:

/**
 * Custom [links] shortcode template
 */
function custom_links_template() {
  return get_template_directory() . '/templates/shortcode-links.php';
}
add_action('links_template', 'custom_links_template');