1. Home
  2. ReHub Theme
  3. List of important meta fields

List of important meta fields

Sometimes you may need keys for custom meta fields of posts where theme stores important data. All meta values also can be used as shortcode. To get value of meta field use this shortcode:

[wpsm_custom_meta field="META-KEY-NAME"]

Fields to use in sorting panels

rehub_main_product_price – theme saves clean numeric price value of main offer of post. You can use it, for example, for sorting by price. Note, if you use Affiliate Egg, you need to use key affegg_product_price

rehub_review_overall_score – field where average review score is saved (between editor’s and user’s). Can be 1-10.

rehub_user_rate – total counter of simple user star rating. If you use full review with criterias for user review, use key post_user_average

rehub_review_editor_score – editor’s score value (1-10)

post_hot_count – counter of post likes (temperature)

rehub_views – post view counter

_rehub_offer_discount – number of discount of Main post offer (works only if you use Content Egg)

_review_score_criteria_1, _review_score_criteria_2, etc – If you have review criteria, these fields will save values from them
rehub_offer_domain – this field is for storing Offer merchant domain (if you use Content Egg with theme)

Fields to use for user submit fields, bulk import plugins

rehub_framework_post_type – post format. Use it if you want, for example, to make all imported posts as review post format. Possible values – review, video, gallery, music, regular (default)

Post offer section fields

rehub_offer_product_url – url for offer. This is required field to add offer to post

rehub_offer_name – name of product. You can leave it blank if you want to use title of post

rehub_offer_product_desc – description for product

rehub_offer_product_price_old – old price for offer (if you want to show a discount)

rehub_offer_product_price – current price (you can use also any string instead of price). If you plan to sort posts by price, you should also enable correct price clean pattern in theme option – localization

rehub_offer_product_coupon – coupon code

rehub_offer_coupon_date – date for offer expiration. Must be in yyyy-mm-dd format

rehub_offer_coupon_mask – checkbox to mask coupon code. Bulean, can be 1 or empty

rehub_offer_btn_text – set this field if you want to have custom text on affiliate button

rehub_offer_product_thumb – set this if you need offer image. Leave blank to use featured image of post

rehub_offer_logo_url – set brand logo url if you need. Also, theme has store taxonomy. So, to add brand logo, it’s better to add post to it’s store. Then you can add image of store logo in store edit page. This will allow to create store archive, store filters and other good functions. But you can use this field if you don’t need store archives

rehub_offer_shortcode – By default, Rehub theme will show offer box in the end of post if offer is existed. If you set 1 for this field, auto offer box will be disabled (you still can insert it in post with shortcode). Note, that Recash child theme doesn’t have auto offer box, instead of this, it shows compact CTA block in top of post.

WooCommerce external product section fields

rehub_woo_coupon_code – coupon code

rehub_woo_coupon_date – date for offer expiration. Must be in yyyy-mm-dd format

rehub_woo_coupon_mask – checkbox to mask coupon code. Bulean, can be 1 or empty

rehub_woo_coupon_url – set brand logo url if you need. Also, theme has store taxonomy. So, to add brand logo, it’s better to add post to it’s store. Then you can add image of store logo in store edit page. This will allow to create store archive, store filters and other good functions. But you can use this field if you don’t need store archives

rehub_woo_coupon_coupon_img_url – url of image for printable coupon function. You must also enable printable function in theme option – shop option

product-type – type of product. Can be “external” if you want to have external product

_product_url – url for external product

_button_text – if you need custom text on button

_regular_price – “old” price or current price if there is discount or current price if there is no discount

_price – field where price is stored (no matter for discount product or not)

_sale_price – field for current price if you have discount

Prices in woocommerce must be numeric values without any currency and with dot delimitter.

Other

rh_post_image_gallery – field for storing additional post thumbnails. Field stores image IDs with commas, example: 2,3,4,5 – where numbers are attachment’s IDS of images

rh_post_image_videos – field for storing additional post videos. Will be visible near thumbnails. Must be as youtube or vimeo links, divided with Enter

Was this article helpful to you? Yes No 1

How can we help?