Changelog
Version 3.0.1 Added June 10th, 2020 • Updated Oct 21st, 2020
Knowledge Exchange
Gravity Form
Make sure templates can handle uploads
Renames uploads
Uploads go up a server folder directory
Categories (uncategorized = default (News)
Tags, keywords
Show posts only submitted by the current user( post_author)
Post Authors = search posts by user
Add – Owners Academy, Advisors Exchange
Add – Advisor Product Guides, Advisor Practice Tips
Updated 10/21/20
Edit Post – date – admins only Not needed. Can be done on WordPress admin
Edit Post – User Front end
Attachments – upload to post
Delete Post – front end if user is post author, then show delete button and function not on admin side
Edit Post ToolBar – show only is user is post author
Upload Files
Added 10/05/20 • Updated 10/16/20
Pre-Set Max. File Upload: allow up to 5 attachments. 5 different fields in gravity forms. > Urls updated and added when form submitted. Template: if field is not empty, then show the button -> CSS
Updated 10/07/20
Use list method: to amend urls and create buttons. Upload attachments to WYSIWYG custom field on post. URLs get added when file is upload. • {merge tags}
Updated 10/16/20
Upload files -> to folder/sorted by user first name, last name, and Wild Apricot ID updated 10/16/20
My file uploads -> Show uploaded files in account. updated 10/16/20
Upload File Format Extension
Added 10/05/20
jpg,gif,png,pdf,txt,webm,ogv,ogg,mp4, mp3, jpeg, doc, docx, xls,
Size limit: 10MB each file
Multi-size Limit: 50MB
Single Post Template
Added 08/12/20
if post DOES NOT HAVE upload or attachment CSS: { display: none !importabt; }
5 hidden button fields that appear when attachment is uploaded and field != null or ‘ ‘;
Single Post Template – Comments: form not showing up
Comment section shows up
Comment section NOT NEEDED
CSS – show list of files uploaded > file name is link. Show icon before it too.
Default Featured Image
Added 10/07/20
Foreach method: Set post thumbnail by using set_post_thumbnail( $post_ID, $attachment_ID );
Default featured image by category
Sync button / shortcode that updates all posts with the specified category ID on click/sync
Update_post_meta( $post_ID, ‘_thumbnail_id’, $attachment_ID );
Query all existing posts
Default Featured Image
Added 10/07/20
$queryParams = array(
‘post_type’ => ‘post’,
‘numberposts’ => -1, // set at -1 to get all posts.
‘cat’ => $search_cat,
);
$posts = get_posts($queryParams);
Foreach( $posts as $post ) {
if( $search_cat == 'category_ID2' ) {
$postIDs = $post-> ID;
}
elseif( $search_cat == 'category_ID3' ) {
$postIDs = $post-> ID;
}
else {
$image_ID = 3467;
}
}