Show post content in two different places without redirect

I ended going the CPT route, as I couldn’t figure out other way. Just added a bunch of logic to duplicate/modify/delete the normal posts when needed. <?php // function for the CPT function SU_kuuma_kysymys_type() { // creating (registering) the custom type register_post_type( ‘kuuma_kysymys’, /* (http://codex.wordpress.org/Function_Reference/register_post_type) */ // let’s now add all the options for this … Read more

Different post into a single page

Add the below code in your single.php file <div class=”post-contents”> <?php $args = array( ‘posts_per_page’ => -1,’orderby’=> ‘date’,’order’=> ‘DESC’,’post_type’ => ‘post’,’post_status’=> ‘publish’); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <div class=”post-single”> <a href=”https://wordpress.stackexchange.com/questions/193620/<?php the_permalink(); ?>”><?php the_title(); ?></a> <p><?php echo $post->post_content; ?></p> </div> <?php endforeach; wp_reset_postdata();?> </div>

Modifying a local template

Depends on the type of template you wish to change. Generally templates have a suffix to them. Some examples: Page Suffix These are used for templates on either individual pages or specific theme templates. page.php page-products.php page-cars.php Single Suffix Used for custom post types or just individual post types. The type of post type defined … Read more

Adding a third custom taxonomies

For every taxonomy you have to choose a unique name, which is used in the database. so so your new e.g. players_region. <?php add_action( ‘init’, ‘build_taxonomies’ ); function build_taxonomies() { register_taxonomy( ‘players_team’, // Unique name. ‘player’, // Post type. array( ‘hierarchical’ => true, ‘label’ => ‘Players Team’, ‘query_var’ => true, ‘rewrite’ => true, ) ); … Read more

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()

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