takeitin

MyFDB Plugin

Plugin Overview
This plugin provides detailed information about fashion models, companies, and brands fromMyFDB (My Fashion Database).

Full Format

Presentation
The data presented by the pluginis displayed on individual posts or on pages . It also beimplemented as a widget (which will appear on your site based on your theme). TheMyFDB profile widgetcan 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 owncustom styles. Custom CSS must be placed in a folder named myfdb-profilewithin 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

Short Format (see full format above)

Positioning for Pages and Posts
The default position for MyFDB widget on the post/pageis at the bottom of the templates. However, this can be disabled and you can control the position by manually adding it to yourtemplates. This is doneby 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.

Caching

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.

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 forposts – 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 customtemplate you are limited to the myfdb_longor myfdb_short formats (see the Style/Template section above).

Default template forpost – This setting controls the default template for the single post. If you have not specified a customtemplate you are limited to the myfdb_longor myfdb_short formats (see the Style/Template section above).

SEARCH

GET SOCIAL

Sign up for the MyFDBlog Recap

More Fashion & Style News from our Network

TWITTER