This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_taxonomy('projects_cat', 'projects', array( | |
'labels' => array( | |
'name' => 'Category', | |
'add_new_item' => 'Add New Category', | |
'parent_item' => 'Parent Category', | |
), | |
'public' => true, | |
'hierarchical' => true | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NO NEED | |
wp-content\themes\veera\framework\classes\class-admin.php | |
------------------------------------------------------- | |
<li class="filter active" data-filter="all">Show All</li> | |
<?php | |
$topics = get_terms( array( | |
'hide_empty' => 0, | |
'taxonomy' => 'portfolio_cat', | |
'orderby' => 'id', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$default_avatar = 'http://zacvineyard.com/blog/wp-content/themes/zac/images/default-avatar.png'; | |
?> | |
<a id="comments"></a> | |
<h2>Comments</h2> | |
<?php if($comments) : ?> | |
<ol class="comments"> | |
<?php foreach($comments as $comment) : ?> | |
<li id="comment-<?php comment_ID(); ?>" class="<?php if ($comment->user_id == 1) echo "authcomment";?>"> | |
<?php if ($comment->comment_approved == '0') : ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="sidebar-tags"> | |
<?php | |
$categories = get_the_category( $post->ID ); | |
foreach ( $categories as $category ): | |
?> | |
<a href="<?php echo esc_url( get_category_link( $category->term_id ) ); ?>"><?php echo esc_html( $category->name ); ?></a>'; | |
<?php endforeach; ?> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-sm-12"> | |
<div class="theme-pagination"> | |
<ul class="list-inline text-center"> | |
<?php // if need post next previous | |
$prev_post = get_previous_post(); | |
$id = $prev_post->ID ; | |
$permalink = get_permalink( $id ); | |
?> | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="row form"> | |
<div class="col-lg-12 form-head"> | |
<h3>PERSONAL & CONTACT INFORMATION</h3> | |
</div> | |
<div class="col-lg-12 col-sm-12"> | |
[text* student_name class:form-control placeholder "Student Name*"] | |
</div> | |
<div class="col-lg-6 col-sm-6"> |