Webdesigncr3ator

Your Trusted Partner

Tag: Wordpress (page 1 of 6)

Adding Favicon to WordPress

<link rel=”icon” href=”<?php bloginfo(‘siteurl’); ?>/favicon.ico” type=”image/x-icon” />
<link rel=”shortcut icon” href=”<?php bloginfo(‘siteurl’); ?>/favicon.ico” type=”image/x-icon” />

How to hide the menu on a particular page?

<?php if( !is_page_template('no-menu-page-template.php') ) : ?>
 
Your code 
 
<?php endif; ?> 

Convert Posts to Page and Page to Posts

User ptypeconverter.zip

$wpdb->query($wpdb->prepare($sql)) Query issue with error

$wpdb->query($wpdb->prepare($sql)) issue

Solution by Syed Ashik Mahmud :

old : $wpdb->query($wpdb->prepare($sql))

new: $wpdb->query($wpdb->prepare($sql,””))

Cheers, Solved 🙂

Create a simple widget in wordpress

register_sidebar( array(
‘name’ => __( ‘Right Sidebar Bottom’, ‘PerfectPoingMarketing’ ),
‘id’ => ‘right_sidebar_bottom’,
‘before_widget’ => ‘<div class=”single_sidebar”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
) );

Show sidebar :

<?php dynamic_sidebar(‘right_sidebar_bottom’); ?>

Older posts

© 2017 Webdesigncr3ator

Theme by Anders NorenUp ↑