May 4, 2011

KVS shortcode in a custom field ?  | KVS Player Pro | Support Forums

Only registered customers are allowed to post in this forum. For everyone else it is read-only.

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

KVS shortcode in a custom field ? 
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
February 3, 2019
10:24 pm
Avatar
MrT
Member
Members
Forum Posts: 9
Member Since:
September 9, 2012
Offline

Hi  , 

Is it possible to use KVS shortcode in a custom field ? 

I tried it , but it doesn’t work . 

My theme allows it 

echo do_shortcode( get_post_meta( get_the_id(), 'mycustomfield', true ) );

and it works with another shortcode . 

but the two version of KVS shortcode   

doesn’t work in custom fields unfortunatly 

Thanks

Phil. 

February 5, 2019
9:55 pm
Avatar
admin
Admin
Forum Posts: 2772
Member Since:
July 2, 2009
Offline

Try this:

add_shortcode('kvs_player', 'cyberseo_gallery_shortcode');
echo do_shortcode(get_post_meta(get_the_id(), 'mycustomfield', true));
remove_shortcode('kvs_player');

You should use the advanced shortcode format. E.g.:

[kvs_player video_url=http://www.mysite.com/myvideo.mp4 preview_url=http://www.mysite.com/myscreen.jpg]
Forum Timezone: Europe/Moscow

Most Users Ever Online: 67

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 62

Freedom: 54

adultdenim: 44

allgoodies: 38

B8europe: 38

schiz: 33

Member Stats:

Guest Posters: 349

Members: 1587

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 5

Topics: 1197

Posts: 5932

Newest Members:

hksolut, pascal.oelmann, kentbrosser, tsmith.taktikz, walter.graefika, cristian.tolentino

Administrators: admin: 2772