katart17
Forum Replies Created
-
Forum: Themes and Templates
In reply to: 3 Column Grid for Custom Post TypesThanks again for your help.
Forum: Themes and Templates
In reply to: 3 Column Grid for Custom Post TypesThanks for the response and the idea. This looks like a much easier solution than what I found. I found a solution that lets me wrap the first 3 posts in a DIV.
I found it here: https://www.lazydada.com/2010-06-10/fancy-wordpress-loop-with-main-posts-and-then-grid-of-post-in-rows/
I might try your solution in another project. Does $count need to be defined anywhere?
BTW Steven, I think you didn’t update the documentation to include the Template Tag for the Logo image. I figured it out since your syntax is very easy to read.
To display the logo image:
<?php echo $entry->getLogoImage(); ?>
Thanks Steven, that worked.
Forum: Themes and Templates
In reply to: Display single page or child pages from one template fileI recently modified it to work when a Post has no Child pages.
[Code moderated as per the Forum Rules. Please use the pastebin]
Can this be streamlined?
Forum: Fixing WordPress
In reply to: Getting "Not Found" message on Editor ButtonsI just figured it out. It was some unnecessary code in the htaccess file.
Forum: Fixing WordPress
In reply to: Getting "Not Found" message on Editor ButtonsThanks for the replay, but I tried all these steps and nothing worked. My memory limit is 128M so I don’t think that can be the problem.
Any other ideas?
Forum: Plugins
In reply to: [Dynamic Headers] [Plugin: Dynamic Headers] Show image if No Flash installedSorry about that. Here is the Code URL:
Forum: Themes and Templates
In reply to: Display Custom Post Content in a WidgetI guess I didn’t explain myself too clearly. I want to display Title, Content and some Custom Meta Data from a Custom Post Type using a widget. I can easily do this with Query Posts in the template, but I’m looking for a good Widget that will do the same thing for my clients to turn on/off display of certain Custom Post Types (in my case – Testimonials is the Custom Post Type).
I ended up using a Plugin called Multiple Content Blocks by Trendwerk. It works fine for now.
Thanks for posting your solution. This is exactly what I need.
I know that is an option and probably what I will end up doing, but I want to hide it from all users below Level 10 (Administrators).
Forum: Plugins
In reply to: Highlight item in list of posts based on current postWOW! I figured it out.
Here is the code I came up with for anyone who wants it or can optimize it.
<?php $myposts = get_posts('post_type=diseases&numberposts=999&orderby=title&order=ASC'); ?> <?php $postid = get_the_id(); foreach( $myposts as $post) : ?> <li class="<?php if( $post->ID == $postid ) { echo 'current'; } ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>
Sorry for writing down my thoughts, but I think it helped.
Forum: Plugins
In reply to: Highlight item in list of posts based on current postI’m getting closer. Now I have called the correct Post ID for each menu item using
<li class="<?php echo $post->ID; ?>">
but now all I need is to say if the Post ID for the current page is the same as the Post ID for the menu item, echo “current” for that item only.
Forum: Plugins
In reply to: Highlight item in list of posts based on current postI guess what I am trying to do is this:
if the ID is == the Post ID then set that menu item class to current.
I have added this to my menu:
<?php while ( have_posts() ) : the_post(); ?> <li class="<?php if( the_id() == $post_id ) { ?>current<?php } else { ?> <?php } ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?>
All this does is create a class with the Post ID and current. Here is an example:
<li class="34current"></li> <li class="35current"></li> <li class="36current"></li>
What I would like to have is just a class of current and on only one list item.
Any ideas?
Forum: Plugins
In reply to: [Plugin: Connections] Filter Alphabetically?Resolved!
Found the shortcode that will do this
[connections_list show_alphaindex='true']
Thanks