This repository has been archived by the owner on Mar 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Function: imdbi_check()
mohamad azami edited this page Feb 17, 2016
·
3 revisions
this function will check the status of meta name. if meta name is available return true and else false.
##Usage
in post loop
<?php imdbi_check($meta_name); ?>
##Parameters $meta_name (string) (required) imdbi meta name
- imdbid
- title
- year
- type
- trailer
- budget
- gross
- imdbvotes
- imdbrating
- metascore
- actors
- writer
- director
- runtime
- released (release date)
- rated (content rating)
- plot
- awards
- language
- country
- genre
- poster
##Example
create an image tag if poster exists (use in post loop)
<?php
if( imdbi_check('poster') ){
?> <img src="<?php echo imdbi('poster') ?>" alt="<?php the_title(); ?>"> <?php
}
?>
if imdbid exists do something, else do something instead (use in post loop)
<?php
if( imdbi_check('imdbid') ){
//do something
}
else{
// do something else
}
?>