CPT Marquee Shortcode
Display custom post type titles in a horizontal marquee or vertical list, with options for limit, speed, direction, separator, prefix, and links.
by MD. Asraful Islam · github.com/asrafuldev/cpt-marquee-shortcode · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/asrafuldev/cpt-marquee-shortcode/archive/refs/heads/main.zipDisplay custom post type titles in a horizontal marquee or vertical list, with options for limit, speed, direction, separator, prefix, and links.
Features
- Show post titles from any custom post type
- Horizontal marquee or vertical list display
- Customizable limit, speed, direction, separator, and prefix
- Each item links to the post
- Easy shortcode generator in the WordPress admin
Installation
- Copy the plugin folder to
wp-content/plugins/. - Activate CPT Marquee Shortcode from the WordPress admin.
Usage
Use the shortcode in posts, pages, or widgets:
[cpt_marquee post_type="post" limit="5" speed="5" direction="left" separator=" | " prefix="→ " list_type="horizontal"]
Shortcode Attributes
post_type: Custom post type slug (default:post)limit: Number of posts to show (default:5)speed: Marquee scroll speed (default:5)direction: Marquee direction (left,right,up,down)separator: Separator between items (default:|)prefix: Prefix for each item (default: empty)list_type:horizontal(marquee) orvertical(list)
Admin Shortcode Generator
Go to Settings > CPT Marquee to use the shortcode generator UI.
Example
[cpt_marquee post_type="product" limit="10" speed="3" direction="right" separator=", " prefix="★ " list_type="vertical"]
License
GPL v2 or later
Author
MD. Asraful Islam https://www.asraful.com.bd/