39images
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Stylish way to display category title?Sorry for wasting your time.
Forum: Themes and Templates
In reply to: Stylish way to display category title?So far, no answer over there. I know I’m being a pain here, but I would really appreciate if you could give me the exact code that I need to have on my content-page.php file. I’m a novice when it comes to this stuff, php syntax, etc.
Forum: Plugins
In reply to: [Gravity Forms Directory] Display all forms completed by a user?Could you please tell me where to add the SQL query and what you mean by:
Then for each of the rows, perform $lead = RGFormsModel::get_lead($entry["id"]); on it.
Where do I do that?Forum: Plugins
In reply to: [Gravity Forms Directory] Display all forms completed by a user?I’m not too familiar with coding. Could you break it down a bit simpler? ?? How would this allow me to embed the user-specific directory on a page?
Forum: Themes and Templates
In reply to: Stylish way to display category title?Editing my content-page.php file is the only thing that seems to produce a result, except all it does is show the page with all the content missing. This is the code for that page:
<?php global $post; theme_post_wrapper( array( 'id' => theme_get_post_id(), 'class' => theme_get_post_class(), 'title' => theme_get_meta_option($post->ID, 'theme_show_page_title') ? get_the_title() : '', 'content' => theme_get_content() ) ); ?>
You suggested that I post this code before the title line. So should it look like this?
<?php global $post; theme_post_wrapper( array( 'id' => theme_get_post_id(), 'class' => theme_get_post_class(), <?php if( in_category( 'book-reviews' ) ) { ?> <img src="https://www.midnightpalace.com/wp-content/uploads/2012/12/bookreviews.png" /> <?php } elseif if( in_category( 'film-reviews' ) ) { ?> <img src="https://www.midnightpalace.com/wp-content/uploads/2012/12/filmreviews.png" /> <?php } ?> 'title' => theme_get_meta_option($post->ID, 'theme_show_page_title') ? get_the_title() : '', 'content' => theme_get_content() ) ); ?>
Forum: Themes and Templates
In reply to: Stylish way to display category title?Thing is, every other wp hack I’ve done with my theme has worked. I really just think it’s me putting the code in the wrong place.
Forum: Themes and Templates
In reply to: Stylish way to display category title?I’m using a theme I created in Artisteer. Is there some code I can provide that might make it easier?
Forum: Themes and Templates
In reply to: Stylish way to display category title?Okay…I’ve tried in vain to add this code.
Here’s the code I’m using:
<?php if( in_category( 'book-reviews' ) ) { ?> <img src="https://www.midnightpalace.com/wp-content/uploads/2012/12/bookreviews.png" /> <?php } elseif if( in_category( 'film-reviews' ) ) { ?> <img src="https://www.midnightpalace.com/wp-content/uploads/2012/12/filmreviews.png" /> <?php } ?>
…and here is the code from my content-page.php file:
<?php global $post; theme_post_wrapper( array( 'id' => theme_get_post_id(), 'class' => theme_get_post_class(), 'title' => theme_get_meta_option($post->ID, 'theme_show_page_title') ? get_the_title() : '', 'before' => theme_get_metadata_icons('edit', 'header'), 'content' => theme_get_content() ) ); ?>
You said it’s supposed to go before the line with
the_title()
. Right? How should it appear? Nothing I’ve tried so far has worked…Forum: Themes and Templates
In reply to: Stylish way to display category title?Thanks for all your help! ?? I will give this a try shortly and let you know how I make out….
Forum: Themes and Templates
In reply to: Stylish way to display category title?Where in the code does it specify that it’s for the ‘reviews’ category?
Forum: Themes and Templates
In reply to: Stylish way to display category title?Would I actually have to code the graphic into it?
Forum: Themes and Templates
In reply to: Stylish way to display category title?Okay so if I wanted to add an image for a category, let’s say it’s called “reviews-head.png”. How would I implement that into this code:
<?php $cats = get_the_category(); foreach( $cats as $cat ) { echo '<span class="fancy-cat cat-' . $cat->slug . '">' . $cat->name . '</span>'; } ?>
Forum: Themes and Templates
In reply to: Stylish way to display category title?I am using a custom template for my posts. Here is the code:
<?php /* Template Name: 2Column */ ?> <?php get_header(); ?> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-sidebar1"> <?php get_sidebar('default'); ?> <div class="cleared"></div> </div> <div class="art-layout-cell art-content"> <?php get_sidebar('top'); ?> <?php if(have_posts()) { /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', 'page'); comments_template(); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <div class="cleared"></div> </div> </div> </div> <div class="cleared"></div> <?php get_footer(); ?>
Where exactly would I add the code? I apologize; I’m not too experienced in php…
Forum: Themes and Templates
In reply to: Apostrophes replaced with slashes! HELP!A lot of people seem to be having the problem and we were told it had something to do with Magic Quotes. Is there a way to turn those off?
Forum: Themes and Templates
In reply to: Apostrophes replaced with slashes! HELP!I’m using a custom theme