Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter marymidori

    (@marymidori)

    Thank you for your response.

    We have a wildcard redirect setup (ie. *.nunasi.com) pointing to the ‘/public_html/’.

    The specific pages of the subdomain site are working, just not the primary page. I can go to directors.nunasi.com/wp-admin or directors.nunasi.com/about, but directos.nunasi.com redirects to /cgi-sys/defaultwebpage.cgi.

    (As a side note, this is set-up on a development server, with the hosts file redirecting the URL so that we can test with the correct domain name.)

    Thread Starter marymidori

    (@marymidori)

    Yes. Sorry for the misplacement of this message and thanks for your reply.
    Given that the bug is not urgent, I will wait for the changes to be incorporated into the next stable release.

    Thread Starter marymidori

    (@marymidori)

    The problem has been addressed in the latest version.

    Thank you!

    Thread Starter marymidori

    (@marymidori)

    Yes, that was it.

    I replaced ‘mysite.loc’ by ‘https://mysite.loc’ for the siteurl and home options in the wp_#_options tables and it resolved the issues.

    Thank you very much!

    marymidori

    (@marymidori)

    I do not what it could be. I use the following code to display the dropdown and it works, showing the correct value when selected:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I definitely have at least one post of each.

    All to say, there could very easily be a naming error somewhere, but I have no idea where!

    I’ll keep looking.

    Thanks for your help,
    mido.

    marymidori

    (@marymidori)

    Unfortunately still finds no posts.

    marymidori

    (@marymidori)

    Unfortunately this still returns no results.

    /wp-admin/edit.php?s&post_status=all&post_type=inuit-firms&action=-1&m=0&sortby_status=A&paged=1&mode=list&action2=-1

    ATTEMPT ONE:

    add_filter( 'parse_query', 'status_filter' );
    
    function status_filter( $query ) {
      global $pagenow;
        if ($pagenow=='edit.php' &&
        			isset($_GET['post_type']) && $_GET['post_type']=='inuit-firms' &&
                isset($_GET['sortby_status']) && !empty($_GET['sortby_status'])) {
            set_query_var( 'meta_query', array( array( 'key' => 'if_status', 'value' => $_GET['sortby_status']) ) );
        }
     }

    ATTEMPT TWO:

    Before I was using the following which had no problems.

    add_filter( 'request', 'status_request' );
    function status_request($request) {
        $current_url = substr( $GLOBALS['PHP_SELF'], -18);
        if (is_admin() && $current_url == '/wp-admin/edit.php' && isset($request['post_type']) && $request['post_type']=='inuit-firms' &&
        isset( $_GET['sortby_status'] ) && !empty( $_GET['sortby_status'] ) ) {
    
    	$request['meta_key']   = 'if_status';
    	$request['meta_value'] = $_GET['sortby_status'];
        }
        return $request;
    }

    I tried this code as well but setting $request[‘meta_query’], but this also found no posts.

    Any thoughts on what could be conflicting in this case?

    Thanks
    Midori

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