wordpress - WP_Query 500 internal error / Scope between php files -
ok - here's problem: perform new wp_query on 1 php file:
$args = array( 'post_type' => ... ); $loop = new wp_query( $args ); while ( $loop->have_posts() ) : $loop->the_post();
this gives me set of relevant posts. hierarchical logic stuff , ask user make selection send server (using _post).
in second php file receive user selection, need access same set of posts. however, when try identical wp_query 500 internal server error... missing simple here. ideas why cannot perform query? and/or workaround, possible still access query results first file (e.g. saving info need kind of global multidimensional array?) if that's possible
excuse ignorance, first time web developer... thanks
Comments
Post a Comment