As example , we have form for orphan children and we want to add ‘age’ filed and set its value on the back-end to be displayed on the form
is this possible using the “Form Filed Manager” ?
]]>$args = array(
'post_type' => DEBBING_TYPE_SLUG,
'post_status' => 'publish',
'meta_query' => array(
array(
'relation' => 'AND',
'status_clause' => array(
'key' => '_debbing_status',
// 'type' => 'NUMERIC',
),
'order_clause' => array(
'key' => '_debbing_order',
// 'type' => 'NUMERIC',
),
)
),
'orderby' => array(
'status_clause' => 'DESC',
'order_clause' => 'DESC',
)
);
query_posts($args);
And use query monitor the sql is below :
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
INNER JOIN wp_postmeta
ON ( wp_posts.ID = wp_postmeta.post_id )
INNER JOIN wp_postmeta AS mt1
ON ( wp_posts.ID = mt1.post_id )
WHERE 1=1
AND ( ( wp_postmeta.meta_key = ‘_debbing_status’
AND mt1.meta_key = ‘_debbing_order’ ) )
AND wp_posts.post_type = ‘debbing’
AND (wp_posts.post_status = ‘publish’
OR wp_posts.post_status = ‘private’)
GROUP BY wp_posts.ID
ORDER BY CAST(wp_postmeta.meta_value AS SIGNED) DESC, CAST(mt1.meta_value AS SIGNED) DESC
LIMIT 0, 10
Every time i reload the page ,the result is different .
]]>And in the meantime, do you have ia solution to get around this limitation ?
]]>I’m setting up a website where people may read online digital magazines once they have purchased a subscription plan.
Each magazine is a post, and a custom field handles a hidden link to online magazine. If the user has payd and is logged in, the link will display.
Could someone please provide some guidance on how to achieve this ?
thanks;
]]>I have a website with lean product names. Lets say a backpack with name “Voyager BP” in category “Backpack” with attributes of color Black, Size 35Litres, Sex Unisex.
I wonder if it is possible to generate dynamic product name (not title) on everywhere that product name is shown, using product category, color or using custom fields without editing theme files.
How cool will it be if we could dynamically display product names too, as we do with title meta tag.
]]>