Including Custom Post Type posts in a page template contextually (or should I widget?)

Custom Archive Page What you’re describing is a custom archive page. https://www.google.com/search?q=custom+archive+page https://codex.wordpress.org/Creating_an_Archive_Index Child Theme Forget widgetised areas. They’re not necessary based on what you described. Simply fork (copy and manipulate) your archives template page by using using a child theme rather than directly editing the parent theme (edits won’t survive theme updates). https://codex.wordpress.org/Child_Themes Featured … Read more

Second nav is merged with the first in mobile

In functions.php, change the function magazine_responsive_menu_settings() to the following: function magazine_responsive_menu_settings() { $settings = [ ‘mainMenu’ => __( ‘Menu’, ‘magazine-pro’ ), ‘subMenu’ => __( ‘Submenu’, ‘magazine-pro’ ), ‘menuClasses’ => [ ‘combine’ => [ ‘.nav-primary’, ‘.nav-header’, ], ], ]; return $settings; } Basically, in the combine, I removed ‘.nav-secondary’, This is how it looks like now

Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework

It’s not because of the archive_box in cpt-archive-settings.php but because of genesis_taxonomy_archive_options in genesis/lib/admin/term-meta.php. You can remove it using if you place the following in child theme: remove_action( ‘admin_init’, ‘genesis_add_taxonomy_archive_options’ ); Update: Those settings are appearing because of the action genesis_add_taxonomy_archive_options attached to admin_init hook. add_action( ‘admin_init’, ‘genesis_add_taxonomy_archive_options’ ); Which again is like this function … Read more

get_post_meta not working inside loop

There is nothing ‘improper’ about the second block of code. Its just written for debugging purposes. The key difference is that that second block used get_the_ID(). Try that. add_action (‘genesis_before_post_content’, ‘gteh_tagline’); function gteh_tagline() { $meta = get_post_meta(get_the_ID(), $field[‘dbt_text’], true); echo $meta; } Or try to pull in $post with global. add_action (‘genesis_before_post_content’, ‘gteh_tagline’); function gteh_tagline() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)