Posts

<?php $video_url = get_field('video'); if( $video_url ): ?> <?php $video = wp_oembed_get( $video_url ); echo $video; ?> <?php endif; ?>
<?php     global $woocommerce;     $items = $woocommerce->cart->get_cart(); $a=array();         foreach($items as $item => $values) {             $_product = $values['data']->post;             //product image             $getProductDetail = wc_get_product( $values['product_id'] );              $getProductDetail->get_image(); // accepts 2 arguments ( size, attr )              "<b>".$_product->post_title.'</b>  <br> Quantity: '.$values['quantity'].'<br>';             $price = get_post_meta($values['product_id'] , '_price', true);              "  Price: ".$price."<br>";             /*Regular Price and Sale Price*/   ...

Full Forms in web

HTML -  Hyper Text Markup Language CSS -  Cascading Style Sheets PHP -  Hypertext Preprocessor JSON -  JavaScript Object Notation PEAR -  PHP Extension and Application Repository MIME -  Multipurpose Internet Mail Extensions

Wordpress Interview Questions

WordPress  is a  free and open-source   content management system  (CMS) based on  PHP  and  MySQL . Wordpress Tables: wp_commentmeta :  This table contains meta information about comments posted on a WordPress website. This table has four fields meta_id, comment_id, meta_key, and meta_value. Each meta_id is related to a comment_id. One example of comment meta information stored is the status of comment (approved, pending, trash, etc). wp_comments :  As the name suggests this table contains your WordPress comments. It contains comment author name, url, email, comment, etc. wp_links :  To manage blogrolls create by earlier versions of WordPress or the Link Manager plugin. wp_options :  This table contains most of your WordPress site wide settings such as: site url, admin email, default category, posts per page, time format, and much much more. The options table is also used by numerous WordPress plugins to st...

PHP Interview Questions

PHP  ( Hypertext Preprocessor ) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.  It is mainly used to create dynamic web page content or dynamic images  used  on websites or elsewhere.  PHP has many frameworks and cms for creating websites.Even a non technical person can cretae sites using its CMS How to include a file to a php page? We can include a file using "include() " or " require ()" function with file path as its parameter. What's the  difference  between include and require? -If the file is not found by require(), it will cause a fatal error and halt the execution of the script. -If the file is not found by include(), a warning will be issued, but execution will continue. What is the difference between Session and Cookie? The main difference between sessions and cookies is that sessions are stored on the...