Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter edwardjs

    (@edwardjs)

    I Would like to share my solution that may be added in next version.

    // Added post_id filtering to DemocracyPoll Archive [ democracy-archives post_id="211" ]
    // output = Archive listing of all polls in selected post#.
    // modified get_dem_polls() function in theme-functions.php
    //

    ...
    if( isset( $rg->post_id ) ){
    $postID = $rg->post_id; // var created because unable to succesfully use %d in next line..
    $WHERE['post_id'] = $wpdb->prepare('WHERE in_posts LIKE "%'. $postID .'%"', (int) $rg->post_id); //array(1,2,3,4,5));
    //$WHERE['post_id'] = $wpdb->prepare('WHERE in_posts LIKE "%\%d%"', (int) $rg->post_id); //array(1,2,3,4,5));
    }
    //ADD a post_id parm to the rg object
    // 'post_id' => null, // customization

    // Does a Text Search via WHERE LIKE
    // Improvement needed-> value search via SQL WHERE IN;
    // needs correct syntax using an Array with, %d variable substitution

    Alvaro, Thanks,

    that IS the best easiest solution to use Gutenberg 2022 or 2023 Themes and to add a fixed(sticky) main menu, just make the whole header stickyish, Except; I used an inset of 32px for 2023 theme and for 2022 Theme I used -50px 0 0 0 and I used a height:45px for 2023 and 115px for 2022 Theme.

    I like webmatrix and wordpress but WP needed 5.6 which WM3 no longer offered.

    Heck, after finding no other solutions i Hacked it a bit & IT works GREAT!!.

    Basically , if its looking for 5.3, Ill give it 5.3, or 7.0 dressed to look like 5.3.

    I just copied 7.0 into 5.3 IISExpress/PHP dirs. ENJOY…its working good for me…YEA!!!

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