Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
c3487175f6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
52 lines (49 sloc) 1.71 KB
<?php
/*
Template Name: User Index
*/
get_header();
?>
<div class="user-index">
<p>There are 11 total parameters for this function: 'tags', 'name', 'image', 'title', 'phone1', 'phone2', 'email', 'fax', 'officeLocation', 'officeHours', and 'mailingAddress'. If no parameters are set, all of the parameters default to true, with the exception of 'tags' which defaults to no tags. To enable any of the parameters except 'tags', set them equal to true. To disable, set any of them except 'tags' to false. The 'tags' parameter takes tags in quotations seperated by commas.</p>
<br />
<p>In the user-index page template, create an array assigned to a variable name of your choice like the one below. You don't have to explicitly assign each parameter as true, they all default to true unless you assign false to a parameter. Then, enter the variable name of your array in the function list_all_public as shown below. The code below is the same code used to show the preview on this page</p>
<br />
<p>Example usage:</p>
<code>
$args = array(
'tags' => array('cats'),
'name' => true,
'image' => true,
'title' => true,
'phone1' => true,
'phone2' => true,
'email' => true,
'fax' => true,
'officeLocation' => true,
'officeHours' => true,
'mailingAddress' => true
);
<br />
list_all_public($args);
</code>
<?php
$args = array(
'tags' => array('cats'),
'name' => true,
'image' => true,
'title' => true,
'phone1' => true,
'phone2' => true,
'email' => true,
'fax' => true,
'officeLocation' => true,
'officeHours' => true,
'mailingAddress' => true
);
list_all_public($args);
?>
</div>
<?php
get_footer();
?>