Skip to content
The Webs Development
We build the identity
  • Home

Category: custom post type

Generate re-write rules for custom post type – wordpress

December 19, 2013 wbrnd

Please write below code in functions.php function wp_rewrite_rules($wp_rewrite) {    $rules = wp_generate_date_archives(‘CUSTOM_POST_TYPE_SLUG’, $wp_rewrite);    $wp_rewrite->rules = $rules + $wp_rewrite->rules; …

Continue Reading →

Posted in: custom post type, Wordpress

Create yearly archive listing for custom post type + wordpress – solved

wbrnd

Please write below code in functions.php function get_cpt_archives( $cpt, $echo = false ) // $cpt = custom post type slug{ …

Continue Reading →

Posted in: custom post type, Wordpress Filed under: archive, yearly archive

Custom post type redirect to home page + wordpress

wbrnd

Please write below code in functions.php add_action(“template_redirect”, ‘template_redirect_news’); function template_redirect_news() { global $wp; $custom_post_types = array(“faq” , “testimonial”); // please…

Continue Reading →

Posted in: custom post type, Wordpress

Categories

.htaccessACFCommand LineConstant Contactcontact form 7CronCron Jobcustom post typedateGravity FormIEjavascriptjQueryjQuery CycleKohanaLaravelMagentoMSSQLMysqlPhone GapPHPphpmyadminPythonRewriteRSSVimeoWampserverWoocommerceWordpresswordpress pluginXMLXSS scriptsYoutubezencart
Copyright © 2021 The Webs Development