Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,596 members, 7,809,161 topics. Date: Friday, 26 April 2024 at 02:09 AM

Woocommerce Help Php Developer Question - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Woocommerce Help Php Developer Question (879 Views)

Urgently Need A Php Developer / I Need A PHP Developer Asap / Woocommerce Shipping Plugin For Local Governments (2) (3) (4)

(1) (Reply)

Woocommerce Help Php Developer Question by seoconsultant(m): 3:35am On Nov 09, 2017
Hello developers please I need an assistance in writing a php code for this issue

how to rewrite 301 redirect of title page url from listings post type (custom post type) to point to title post (same title) of woocommerce product post type.
I find this code handling that for the theme url title link but don't know how to go around this.

============================================================
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="">
<div class="post-content post-content-vc">
<?php the_content(); ?>
</div>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'motors' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'motors' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div>
</div>

(1) (Reply)

Get Web Programming, C++, Java Tutorial Tutorial Videos. / Where Can One Learn Programming In Abuja? / Buy And Sell Websites

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.