Tag Info

New answers tagged

0

pre_get_posts filters will be applied to all queries on a page- the main query, menus, and additional WP_Query instances. To target only the main query, use is_main_query(): function my_pre_get_posts( $query ) { // bail early if is in admin // or if query is not main query if( is_admin() || !$query->is_main_query() ) { return; } ...


0

Using Genesis was your first mistake. The second was that the error you provided message spells out the problem exactly. Your child theme (modern-studio-pro) is declaring the genesis_standard_loop() function in it's functions.php - as that is a core Genesis function, it should only be loaded by the parent Genesis theme. Remove the function from your child ...


1

Couple of issues are seen here - You have hooked a function in a template file whereas such code should go in functions.php instead or you can directly put the code of this function in the template. You does not seem to be getting value of $post inside this function. Both the return statements should be removed and just echo $html; should be placed just ...


2

The answer to which framework you should use is — no one knows. From code perspective there is certain degree of baseline theme functionality/experience — enforced by formal standards. Those things are recommended/required for inclusion into official theme directory, outside of that people can do things a little more lax. Frameworks exist for different ...



Top 50 recent answers are included