Addition to basic shortcodes
-
Great plugin – would you be able to add a basic shortcode in the staff-directory loop that allows us to pull out either the full link to that staff members page, or their id so that we can link it manually?
i added/changed the following in classes/staff_director_shortcode.php in the plugin director and it fixes my requirement, but may be a nice simple addition to future releases. changes done around lines 290
$staff_id = get_the_ID(); $accepted_single_tags = array("[name]", "[photo_url]", "[bio]", "[category]", "[staff_id]"); $replace_single_values = array($staff_name, $photo_url, $staff_bio, $staff_category, $staff_id); $accepted_formatted_tags = array("[name_header]", "[photo]", "[email_link]", "[bio_paragraph]", "[website_link]", "[staff_id]"); $replace_formatted_values = array("<h3>$staff_name</h3>", $photo_tag, $staff_email_link, "<p>$staff_bio</p>", $staff_website_link, $staff_id);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Addition to basic shortcodes’ is closed to new replies.