Can I override the values loaded by add_theme_support in function.php?
Problem: I’m setting up a site based on the Twenty Seventeen theme and that theme includes in its function.php file a section to set the size of the custom-logo: //code
Problem: I’m setting up a site based on the Twenty Seventeen theme and that theme includes in its function.php file a section to set the size of the custom-logo: //code
Get post content by usingpost id in wordpres function custom_content($post){ $my_postid = 6;//This is page id or post id $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); $content
Create a short code in wordpress function my_shortcode() { //buffering //Object Start ob_start(); date_default_timezone_set(‘asia/kolkata’); //echo date(‘H:i:s’); echo ‘<div id=”mytime”></div>’; // object get contents $output_string = ob_get_contents(); // clean object ob_end_clean();
Get default time by using php date_default_timezone_set(‘asia/kolkata’); <div id=”mytime”>echo date(‘H:i:s’);</div>
A basic example contact from in php and store data from it //contact form in php page <form id=”contact-form” method=”post” action=””> <h2>Contact Us</h2> <div class=”row two-col”> <div class=”first-col”> <label>First Name</label>
Display specific data from custom database table in WordPress <table border=”2″> <tr> <th>ID</th> <th>Firstname</th> <th>Lastname</th> <th>Email</th> <th>Phone</th> <th>Message</th> </tr> <?php global $wpdb; $table_name = $wpdb->prefix . “my_plugintable”; $result = $wpdb->get_results
Dharmanagar, Tripura, India.