This plugin provides detailed information about fashion models, companies, and brands from MyFDB (My Fashion Database).
The data presented by the plugin is displayed on individual posts or on pages . It also be implemented as a widget (which will appear on your site based on your theme). The MyFDB profile widget can be dragged and dropped into any widget container.
Style (CSS) – Presentation Template
The plugin includes the following two pre-defined styles (presentation templates):
myfdb_full – Includes profile name, number of credits, and link to MyFDB profile (see example above)
myfdb_short -Includes profile name, number of credits, link to MyFDB profile, and three recent credits with images and titles (see example below)
You can also create your own custom styles. Custom CSS must be placed in a folder named myfdb-profile within your theme (/wp-content/themes/<your theme>/myfdb-profile). To build your own style sheet you can start by copying the contents of /wp-content/plugins/myfdb-profile/css/myfdb_style.css
Positioning for Pages and Posts
The default position for MyFDB widget on the post/page is at the bottom of the templates. However, this can be disabled and you can control the position by manually adding it to your templates. This is done by adding the following in the desired position within the template where “$post” is the post object (current post/page) and “$class” is CSS class for design of <div>:
wp_myfdb_post_profiles ($post, $class)
Editing Pages and Posts
To add a profile to a page post scroll down on the editor page and locate the MyFDB Profiles section. If the plugin has been enabled and this section does not appear, you must edit your Screen Options. Use the dropdown box to select either a person or a company and start typing in the name. If you pause during typing, a list of suggestions will appear and you can select from that list. Click the “Add” button to add the profile. Repeat the process to select additional profiles. You can also specify a different template (see Style/Templates above) to alter the presentation just for that post or page.
Data requested from the MyFDB database is stored on your host server until it expires. This greatly reduces page load times. You can adjust the cache refresh time in the MyFDB plugin settings.
The following settings can be modified:
Cache refresh time (in hours) – See Caching section above
MyFDB profile output methods – Controls the positioning of the content on single posts and pages – The default setting automatically adds the widget to the bottom of the post or page. Learn more in the Positioning for Pages and Posts section above
Enable MyFDB plugin for pages – This setting is only relevant if you are automatically adding the MyFDB widget (see above). It allows you disable the widget on pages.
Enable MyFDB plugin for posts – This setting is only relevant if you are automatically adding the MyFDB widget (see above). It allows you disbale the widget on posts.
Default template for page – This setting controls the default template for the page. If you have not specified a custom template you are limited to the myfdb_long or myfdb_short formats (see the Style/Template section above).
Default template for post – This setting controls the default template for the single post. If you have not specified a custom template you are limited to the myfdb_long or myfdb_short formats (see the Style/Template section above).