Assign a link of a post to that contains that post?

This should help you: <?php if ( !is_singular() ) : echo ‘<a href=”‘ . esc_url( get_permalink() ) . ‘” rel=”bookmark”>’; endif;?> Here is your existing <article></article> codes <?php if ( !is_singular() ) : echo ‘</a>’; endif;?>

menu customization

I’m not sure, but if I understand correctly you should create a second menu which is only visible on your Spanish language page. if (is_page($english_page_id)) { wp_nav_menu( array(‘menu’=>$english_menu) ); } if (is_page($spanish_page_id)) { wp_nav_menu( array(‘menu’=>$spanish_menu) ) } is_page() wp_nav_menu()

Fetching wpdb data from a php file seems to break?

Initial thoughts are that it depends where your load_marque.php file is located. I assume within a theme or plugin. If so, what happens when the file is called directly. If there are some errors, these will be shown on the page. Based on the on here https://codex.wordpress.org/Class_Reference/wpdb your query your query may need to be … Read more

How to wait for WordPress Core to load when writing OOP?

The core problem is that you are not writing OOP. OOP is about identifying objects in your system, not actions. If you want to identify actions than you are better to follow functional design paradigms (and with wordpress hook system, functional design make much more sense). In your case redirect is an action, that probably … Read more