Changeset 1854750
- Timestamp:
- 04/08/2018 11:34:45 AM (8 years ago)
- Location:
- profile-xtra
- Files:
-
- 17 added
- 1 edited
-
tags/2.2.0 (added)
-
tags/2.2.0/ajaxes.php (added)
-
tags/2.2.0/alterauthor.php (added)
-
tags/2.2.0/css (added)
-
tags/2.2.0/css/admin_style.css (added)
-
tags/2.2.0/css/style.css (added)
-
tags/2.2.0/js (added)
-
tags/2.2.0/js/backend.js (added)
-
tags/2.2.0/js/profilextra.js (added)
-
tags/2.2.0/languages (added)
-
tags/2.2.0/languages/profile-xtra.pot (added)
-
tags/2.2.0/multiauthor.php (added)
-
tags/2.2.0/optionspage.php (added)
-
tags/2.2.0/profilextra.php (added)
-
tags/2.2.0/readme.txt (added)
-
tags/2.2.0/shortcodes.php (added)
-
tags/2.2.0/uninstall.php (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
profile-xtra/trunk/readme.txt
r1854737 r1854750 7 7 Requires at least: 3.0.1 8 8 Tested up to: 4.9.6 9 Stable tag: 2. 1.69 Stable tag: 2.2.0 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 106 106 </h3> 107 107 108 And, on the contrary, you can found where current author is part of the multiple authors' team. Use the function <em>posts_where_multi</em> for that. For example, searching on the 'product' post type of woocommerce: 109 110 //we are on the author's page sidebar 111 $theauthor = get_queried_object(); 112 $multi_ids = posts_where_multi($theauthor->ID,'product'); 113 if (count($multi_ids)>0){ ?> 114 <div class="widget"> 115 <span>I'm also participate as author in</span> 116 <ul class="products"> 117 <?php foreach ($multi_ids as $multi_id){ ?> 118 <li><?php echo get_the_title($multi_id);?></li> 119 <?php } ?> 120 </ul> 121 </div> 122 <?php } ?> 123 108 124 109 125 … … 133 149 134 150 == Changelog == 151 152 = 2.2.0 = 153 * A function was added to search if author appears as multiauthor and returns where (the post ids) 135 154 136 155 = 2.1.6 =
Note: See TracChangeset
for help on using the changeset viewer.