新人求教,我使用的是一款第三方主题“fluxus”,模板自带Portfolio,一个相册发布模块,因为很喜欢这个功能,所以想基于这个模板进行二次开发,探索中想把模块自带的tag标签和Portfolio搜索木块调用到其他位置显示,但是源代码中没有找到调用的命令,希望有大神能够指导 或者能简单讲解下类似的问题新手该怎么下手...
其中涉原模板中调用标签的代码在sidebar中,大概如下:
<?php
$project = new PortfolioProject( get_the_ID() );
?>
<div class="overview"><?php
if ( ! post_password_required() ) :
if ( $project->exists() ) : ?>
<hgroup><?php
if ( $project->meta_subtitle ) : ?>
<h2 class="subtitle"><?php echo $project->meta_subtitle; ?></h2><?php
endif;
?>
<h1 class="title"><?php the_title(); ?></h1>
</hgroup><?php
endif;
$content = trim( strip_tags( $post->post_content ) );
if ( ! empty( $content ) ) : ?>
<div class="widget">
<div class="textwidget">
<?php the_content(); ?>
</div>
</div><?php
endif;
if ( $project->meta_link ) : ?>
<aside class="widget widget-project-info">
<div class="decoration"></div>
<h3 class="widget-title"><?php _e( 'Project Info', 'fluxus' ); ?></h3>
<a class="external-link" href="<?php echo esc_url( $project->meta_link ); ?>" target="_blank">
<?php _e( 'Visit website', 'fluxus' ); ?>
</a>
</aside><?php
endif;
if ( $project->meta_info && is_array( $project->meta_info ) &&
isset( $project->meta_info[0] ) && $project->meta_info[0] ) :
foreach ( $project->meta_info as $info ) : ?>
<aside class="widget widget-project-custom-info">
<div class="decoration"></div>
<h3 class="widget-title"><?php echo $info['title']; ?></h3>
<div class="widget-content">
<?php echo nl2br( $info['content'] ); ?>
</div>
</aside><?php
endforeach;
endif;
dynamic_sidebar( 'sidebar-portfolio-single' );
else: ?>