Get Custom Field Values
This plugin provides a powerful widget, shortcode (with shortcode builder tool), and template tags for easily retrieving and displaying custom field values for posts or pages. The power of custom fields gives this plugin the potential to be dozens of plugins all rolled into one. This plugin allows you to harness the power of custom fields/meta data. Use the “Get Custom Field” widget, the [custom_field] shortcode (which has a post editor sidebar widget to help you build the shortcode), or one of six template tags to retrieve and display custom fields. Find a custom field for the current post, a specified post, a recent post, or randomly. And for the custom field values found by the plugin, you may optionally specify text or HTML to appear before and after the results. If nothing is found, then nothing is display (unless you define text to appear when no results are found). If multiple results are found, only the first will be displayed unless you specify a string to be used to join the results together (such as “,”), in which case all will be returned. Visit the Examples section to see how this plugin can be cast in dozens of different ways. There are six template tags provided by this plugin. Here they are, with an explanation of when they are appropriate for use: c2c_get_custom() : Use this inside “the loop” to retrieve a custom field value for a post c2c_get_current_custom() : This is only available on the permalink post template (single.php) and page template (page.php). Can be used inside or outside “the loop”. Useful for using custom field to define text you want to include on a post or page’s header, footer, or sidebar. c2c_get_post_custom() : Useful when you know the ID of the post whose custom field value you want. c2c_get_random_custom() : Retrieve the value of a random instance of the specified custom field key, as long as the field is associated with a published posted, non-passworded post (you can modify a setting in the plugin file to search passworded posts as well). c2c_get_random_post_custom() : Retrieves the value of random custom field(s) from a post when you know the ID of the post you’re interested in. c2c_get_recent_custom() : Retrieves the most recent (according to the associated post’s publish date) value of the specified custom field. You can filter the custom field values that the plugin would display. Add filters for ‘the_meta‘ to filter custom field data (see the end of the code file for commented out samples you may wish to include). You can also add per-meta filters by hooking ‘the_meta_$sanitized_field‘. $sanitized_field is a clean version of the value of $field where everything but alphanumeric and underscore characters have been removed. So to filter the value of the “Related Posts” custom field, you would need to add a filter for ‘the_meta_RelatedPosts‘. Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage Developer Documentation Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous template tags, hooks, and shortcode provided by the plugin. As an overview, these are the template tags provided the plugin: c2c_get_custom() : Template tag for use inside “the loop” and applies to the currently listed post. c2c_get_current_custom() : Template tag for use on permalink (aka single) page templates for posts and pages. c2c_get_post_custom() : Template tag for use when you know the ID of the post you’re interested in. c2c_get_random_custom() : Template tag for use to retrieve a random custom field value. c2c_get_random_post_custom() : Template tag for use to retrieve random custom field value(s) from a post when you know the ID of the post you’re interested in. c2c_get_recent_custom() : Template tag for use outside “the loop” and applies for custom fields regardless of post. These are the hooks provided by the plugin: c2c_get_custom_field_values_shortcode : Filter to customize the name of the plugin’s shortcode. c2c_get_custom_field_values_post_types : Filter to customize the post types that should support the shortcode builder metabox. get_custom_field_values/can_author_use_shortcodes : Filter to customize if post author can make use of the ‘custom_field’ shortcode. get_custom_field_values/show_metabox : Filter to customize if the shortcode builder metabox is shown. The shortcode provided is [custom-field], which has a number of attributes to customize its behavior and output.
Top keywords
- custom37×4.86%
- field25×3.29%
- post24×3.15%
- custom field21×2.76%
- c2c14×1.84%
- template13×1.71%
- shortcode11×1.45%
- value9×1.18%
- filter8×1.05%
- random8×1.05%
- custom field values7×0.92%
- field values7×0.92%
Lazy SEO
The Lazy SEO plugin will automatically create exact match SEO keyword/location combinations for SEO title tags and meta descriptions that randomly rotate with each refresh using SEO best practices. In addition, if you check the box to replace h1’s, it will add an exact match h1 to the content, or replace the first one if it exists, with the same SEO keyword/location combo. Perfect for Small Business SEO. Have WooCommerce? Check out my Small Business eCommerce SEO extension! How to use: 1) Go to the Lazy SEO Settings page to change the default SEO keywords and locations!!! 2) Select whether you want to use the replace h1 Lazy SEO feature. This will replace the first h1 tag within the content of your page/post with the selected priority SEO keyword/location combo for that post for SEO purposes. If there is no SEO keyword priority, it will select a random keyword from your keyword list in the settings. Locations will only be used if selected as priority. If there is not an h1 tag to replace, a new one will be added at the top of the content. 3) Enter an integer for the number SEO keywords you want to use for the site. These SEO keywords will be used throughout the entire site to generate title tags, meta descriptions, and h1 tags (if selected). This is where the list of SEO keywords to focus on will be pulled from. 4) Enter in the SEO keywords. 5) Enter an integer for number geographic locations. These are used the same way as the SEO keywords but for many functions, if they are not set, no location will be assigned (e.g. meta descriptions and new h1 tags). 6) Enter in the geographic locations. 7) Focus pages/posts to SEO keyword and geographic locations through the drop down menu. If an SEO keyword is set, then it will always appear first in the title tag and appear in both the meta description and new h1 (if applicable). If a location is set, it will always be the geographic location used in all three modifications. If there is no geo graphic location used, the first section of the title tag will have a random geographic location, but there will be no geographic location used in either the meta description or new h1 (if applicable). 7a) If no SEO keyword is selected, then one will be assigned for you based on SEO keyword usage. Furthermore, if no location is selected AND no SEO keyword is selected, both will be assigned. However, if an SEO keyword has been selected, a location will NOT be selected and instead be random. To attempt to assign a new focus, select the empty (default) priority. 8) Never worry about fresh SEO content again.
Top keywords
- seo25×5.35%
- keyword12×2.57%