Blog

All Post Call In page – WordPress

<?php /* Template Name: Testimoniyo */ ?> <?php get_header(); ?><div class=”content news_page”> <h1>Latest News</h1> <?php $args = array( ‘post_type’ => ‘post’ , ‘orderby’ => ‘date’ , ‘order’ => ‘DESC’ , ‘posts_per_page’ => 6, ‘category’         => ‘3’, ‘paged’ => get_query_var(‘paged’), ‘post_parent’ => $parent ); ?> <?php query_posts($args); ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <div class=”large-4 medium-4 small-12 columns”> <div class=”latest_news_cont”> <a href=”<?php the_permalink() ?>”><?php the_post_thumbnail(); ?></a> <a href=”<?php the_permalink() ?>”><h5><?php the_title(); ?></h5></a> <?php the_excerpt(); ?> <p style=”text-align:center;”><a href=”<?php the_permalink() ?>” class=”readmore_news”>Read more</a></p> <br> <div class=”clear”></div> </div> </div> <?php endwhile; ?> <?php endif; ?> <div class=”clear”></div> </div><!–end of content–> <div class=”clear”></div> <?php get_footer(); ?>

Magento 2 : Remove my account navigation links

1. go to app/design/frontend/Vendor/themeName/Magento_Customer/layout     and create     (customer_account.xml) 2. <?xml version=”1.0″?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom"> <body> <!-- Remove unwanted account navigation links --> <!-- downloadable product link --> <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/> [...]