Changeset 2217527
- Timestamp:
- 12/24/2019 12:47:13 PM (6 years ago)
- Location:
- ac-custom-loop-shortcode/trunk
- Files:
-
- 2 edited
-
ac-wp-custom-loop-sc.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ac-custom-loop-shortcode/trunk/ac-wp-custom-loop-sc.php
r2207045 r2217527 78 78 $post_types = get_post_types($args, 'names'); 79 79 $theme_directory = $template_path; 80 //$theme_extention = (substr($template, -4) === '.php' || substr($template, -5) === '.twig' ) ? '' : '.php'; 81 $template = (substr($template, -4) === '.php') ? substr_replace($template ,"",-4) : $template; 80 82 $theme_template = $theme_directory . $template . '.php'; 81 83 $theme_template_type = $theme_directory . $template . '-' . $type . '.php'; … … 96 98 } 97 99 98 if (file_exists($theme_template)) 100 101 if (file_exists($theme_template_type)) 102 { 103 $template = $theme_template_type; 104 105 }elseif (file_exists( $theme_template )) 99 106 { 100 107 $template = $theme_template; 101 108 102 }elseif (file_exists( $theme_template_type ))103 {104 $template = $theme_template_type;105 106 109 }else{ 107 110 $template = "loop-template.php"; 108 109 111 } 110 112 -
ac-custom-loop-shortcode/trunk/readme.txt
r2207045 r2217527 4 4 Tags: shortcode, list post, list custom posts, timber, twig, custom post type 5 5 Requires at least: 4.6 6 Tested up to: 5.3 7 Stable tag: 1.4. 16 Tested up to: 5.3.2 7 Stable tag: 1.4.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 40 40 == Upgrade Notice == 41 41 42 = 1.4.2 = 43 Fix template arguments to allow .php to be optional. 44 42 45 = 1.4.0 = 43 46 Updates to templates plus timber support and show posts using ids. … … 53 56 54 57 == Changelog == 58 59 = 1.4.2 (2019-12-24) = 60 * Fix shortcode argument issues. 55 61 56 62 = 1.4.1 (2019-12-06) =
Note: See TracChangeset
for help on using the changeset viewer.