Giter Site home page Giter Site logo

staff-directory's Introduction

This repo is meant to serve as a mirror to the Staff Directory plugin hosted on Wordpress.org. This repo will be updated to reflect the svn repo and will be open to pull requests should anyone like to submit one.

Plugin Features

  • [staff-directory] shortcode with options for ordering, categories, etc
  • Staff categories
  • Ability to create custom staff details fields, complete with auto-generating shortcodes for custom fields
  • 2 default templates for displaying staff
  • Support for multiple templates. You can choose a default as well as choose set a template for use with the [staff-directory] shortcode.

staff-directory's People

Contributors

0averyan avatar adamtootle avatar ethanclevenger91 avatar marcorocca avatar timnolte avatar turqdevdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

staff-directory's Issues

Undefined variable notice

Hey, just installed and I'm getting this notice in the settings panel.

Notice: Undefined variable: did_update_options in /web/app/plugins/staff-directory/views/admin_settings.php on line 63

Multiple category ids for [staff-directory] shortcode

We have implemented the feature and we have allowed the shortcode to use slugs instead of ids.
If you want we can submit a pull request to your GitHub repository.
We think supporting slug and multiple categories may be a pro for everyone.

Email Link

I see that [email-link] has been deprecated, however I have <a href="mailto:[email]">[email]</a> and it's just linking to not the shortcode, but just the text of [email]

Any ideas?

Template for Profiles

@adamtootle @TurqDevDesign

How's it going guys? Been awhile.

I cannot remember the outcome of this, but if I want the individual staff pages to load using a specific template, how do I do that? Wasn't it by creating a template and titling it something specific?

Thanks,
David

Problem with custom template.

Staff directory resets custom template after disabling and enabling the plugin.

  1. installed plugin and enabled it.
  2. added content.
  3. created custom template in template1 field. saved.
  4. disabled plugin.
  5. enabled plugin again.
  6. template1 was reset to default.

orderby=name not working

Plugin version: 1.1.2
WordPress version: 4.7.5

I created a custom detail field with the template shortcode [order] in order to sort the items by the given number in this field. But the items are ordered by their ID in ascending (or order=DESC => descending) order, the plugin seems to ignore orderby=name.

Full shortcode: [staff-directory cat=3 template=custom_1 orderby=order order=ASC]

Custom templates missing after upgrade to 1.1.0

Our site broke after updating the staff-directory plugin to 1.1.0. I did the following to restore our site:

  • backed up a copy of the staff-directory plugin folder
  • deleted the plugin folder
  • logged into the site
  • installed 1.0.3 from the Github tag

This got our site back up and running, but all of our custom directory list templates seem to be gone. I upgraded to PHP7 per issue #13 and upgraded the plugin to 1.1.0 again, but they are still missing.

Where should these custom templates be "stored" (e.g. database table, folder, etc.) and is there a non-catastrophic reason they wouldn't be showing up?

[BIO] tag removes HTML

I have rewrote some of our pages and included [BIO] on a few of the templates I've created and it's apparently removing the HTML or more specifically the line breaks <br /> from the biography which is causing the entire bio to be a long run on paragraph.

Thanks in advance.

Optional [staff-directory] title parameter

Hello, in our use case of your great plugin we have the need to insert a title over every table generated by the [staff-directory] shortcode.

For example we need to dynamically implement a layout like this:

title
table1

title
table2

[no title and no table when table is empty]

Is there a way to do this in a clean way? At the moment we have overwritten the class StaffDirectoryShortcode supporting a new title argument but it will be a good idea to have this feature in the official release.

Amending URL Base '/Staff'

Hello! Not sure if this is the correct forum for this request. Feel free to point me in the direction of some WP / PHP documentation outlining the process if it's not a unique change for the plugin.

I'm wondering how to change the start of the url from "staff". Love the plugin, love what it does but in our specific scenario we want to use the word "stations" (as in Radio, TV stations).

At this stage I don't mind of the admin side still shows everything as "Staff", I'd just love to get the URL swapped!

Image Cropping

Hello, I saw you said post here for issues that you might be able to look at.

I have two when it comes to images.

  1. It crops the images and cuts off heads. Not sure what it's using to crop the images, but it doesn't look good.
  2. Images keep turning themselves. Thumbnails are turning sideways for some of the users staff picture.

Thanks for your help,
David

Latest Update 1.1.0 Broken

Evening,
Just writing for a few issues with the latest release. I loved the idea of single author pages with biographies, but it failed.

The latest update created issues with JQUERY items as well as broke other custom_post_type layouts. I saw users saying they were receiving a 500 error. I wasn't able to duplicate that.

I'm not sure if it's because of it killing layout items, but also shortcodes for Staff Directory plugin did not function any longer after update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.