Plugin Directory

Changeset 1854750


Ignore:
Timestamp:
04/08/2018 11:34:45 AM (8 years ago)
Author:
ernestortiz
Message:

Profile Xtra 2.2.0

Location:
profile-xtra
Files:
17 added
1 edited

Legend:

Unmodified
Added
Removed
  • profile-xtra/trunk/readme.txt

    r1854737 r1854750  
    77Requires at least: 3.0.1
    88Tested up to: 4.9.6
    9 Stable tag: 2.1.6
     9Stable tag: 2.2.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    106106    </h3>
    107107
     108And, 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
    108124
    109125
     
    133149
    134150== Changelog ==
     151   
     152= 2.2.0 =
     153* A function was added to search if author appears as multiauthor and returns where (the post ids)
    135154
    136155= 2.1.6 =
Note: See TracChangeset for help on using the changeset viewer.