Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • dear keesiemeijer, it works, thank you!

    dear keesiemeijer,

    I guess my problem is similar but concerns some other file. could you please help me? I have info:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/wp-content/themes/Nuance/functions/sidebars.php on line 83 and defined in /home/xxxxx/public_html/wp-includes/wp-db.php on line 990

    I will be grateful for your help because this problem concerns a lot of my websites. Of course I can send you more files to get to know the problem.

    Sidebars.php:

    /* User made sidebars */
    $w_count = 0;

    global $wpdb;

    $widgetized_pages = $wpdb->get_col($wpdb->prepare(“SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = ‘jw_sidebar'”));

    if($widgetized_pages){

    foreach($widgetized_pages as $w_page){

    $widget_id = strtolower(str_replace(‘ ‘, ‘_’, $w_page));

    register_sidebar(array(
    ‘name’ => $w_page,
    ‘id’ => ‘jw_widgetsection_’.$widget_id,
    ‘description’ => ”,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div><div class=”separator”></div>’,
    ‘before_title’ => ‘<h5>’,
    ‘after_title’ => ‘</h5>’
    ));

Viewing 2 replies - 1 through 2 (of 2 total)