বৰ্ণনা
In the web marketing/publishing industry a content molecule is basically a piece of reusable content that can be placed throughout a website. Typically isolated in nature, they often appear in sidebars and margins. Applying this concept to the WordPress framework, you can create content that can be embedded anywhere shortcodes are processed. Taking the concept a little further, any number of custom attributes can be added to the usage of the shortcode, and those values can be embedded in the resulting output.
[m id=”slug” audience=”Student” product=”backpack”]
Will translate the following molecule:
Greetings {audience}!
Check out our new {product} today!
into this:
Greetings Student!
Check out our new backpack today!
Obviously a ridiculous example, but the flexibility remains the same regardless of the silly intent. Stop repeating content throughout your site only to have to re-edit those pieces in every location when you need to make a correction or update.
Molecules are a custom post type. After the plugin is activated a new section will appear in the left admin menu titled “Molecules.” There you can create and manage reusable pieces of content. As a bonus I have added the post slug to the list view for easy reference. If you embed a molecule in a post or page and the slug does not exist yet, it will create a draft for you to fill in later.
That’s about it for now, any input for future features is welcome.
Arbitrary section
ইনষ্টলেশ্যন
- Upload the plugin contents to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress Admin
- You’re done!
সঘনাই উত্থাপিত প্ৰশ্ন
Nobody has asked me anything so, as soon as they do I’ll add some points here!
পৰ্য্যালোচনা
এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।
অৱদানকাৰী আৰু বিকাশকাৰীসকল
“Content Molecules” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।
অৱদানকাৰীসকলআপোনাৰ ভাষাত “Content Molecules” অনুবাদ কৰক।
বিকাশৰ প্ৰতি আগ্ৰহী?
ক’ড ব্ৰাউজ কৰক, SVN ৰিপজিটৰী চাওক নাইবা RSS-দ্বাৰা বিকাশৰ পঞ্জী ছাবস্ক্ৰাইব কৰক।
সলনি-পঞ্জী
1.3
- Improved save performance: was calling reset transients twice on save.
1.2
- Fixed two bugs: invalid var reference
forgot to update the version tag for my last update 🙁
1.1
- Fixed two bugs: potential overwrite of other custom properties added to view all list.
loaded molecule specific filters are all custom post types.
1.0
- Initial creation of plugin