iceytina
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Coding shelter cat listing plugin– taxonomies not showingLol yep I knew it.
It was at the bottom.
register_taxonomy('$name', array('adl_catslistings'), $arr);
Was supposed to be
register_taxonomy($name, array('adl_catslistings'), $arr);
Solved.
Forum: Themes and Templates
In reply to: [Ascetica] Solution: Add Category Featured ImagesOh there is one thing I forgot to go over… a BIG step actually…! So sorry — it’s about 12 at night when I wrote this and I’m quite tired…
Copy this code from content.php (it already has the featured thumbnail added):
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>"><?php do_atomic( 'open_entry' ); // ascetica_open_entry ?>
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'singular-gallery-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'default_image' => get_template_directory_uri() . '/images/singular_gallery_thumbnail_placeholder.png', 'width' => 400, 'height' => 230 ) ); ?><?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published] · by [entry-author] · in [entry-terms taxonomy="category" before=""] [entry-edit-link before=" · "]', 'ascetica' ) . '</div>' ); ?>
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'ascetica' ), 'after' => '</p>' ) ); ?>
<?php do_atomic( 'close_entry' ); // ascetica_close_entry ?>
</div><!-- .hentry -->
Open archive.php and find this line:
<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
Delete it and paste the long above code in it’s place.
Save, close, upload, refresh page. Should work fine.