Triple P
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to use jQuery in wordpressYou will have to (register and) enqueue the script: http://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_script. See also admin_enqueue_scripts
Forum: Plugins
In reply to: [SimpleModal Login] Display – Welcome "name" once logged in?Something like this:
<div class="loginpopup"> <?php if ( is_user_logged_in() ) { ?> // welcome message goes here <?php } else { ?> <a href="/wp-login.php" class="simplemodal-login">Log In</a> <strong>|</strong> <a href="/wp-login.php?action=register" class="simplemodal-register">Register</a> <?php } ?> </div>Forum: Plugins
In reply to: [SimpleModal Login] Display – Welcome "name" once logged in?Check the is_user_logged_in function
Forum: Themes and Templates
In reply to: How to remove RSS feed linkPut this in your css:
#footer #subscribe-rss a { display:none; }It won’t disable the rss on your site though.
Forum: Fixing WordPress
In reply to: Display a Post Number instead of the Post Datefor incrementing number see http://www.wprecipes.com/how-to-display-an-incrementing-number-next-to-each-published-post
Forum: Hacks
In reply to: help with post typeTo create secondary loops, make a new instance of WP_Query with the desired parameters:
// Create a new instance $second_query = new WP_Query( 'tag=foo' ); // The Loop while( $second_query->have_posts() ) : $second_query->the_post(); echo '<li>'; the_title(); echo '</li>'; endwhile; wp_reset_postdata();Forum: Fixing WordPress
In reply to: RSS Comment FeedsFor the comments, try
href="<?php bloginfo('wpurl'); ?>/comments/feed"Forum: Fixing WordPress
In reply to: Remove "Add New" from custom-post-type for AuthorsCheck the IDs and classes with Firebug or the like, and hide with css:
function hide_that_stuff() { if('YOURPOSTTYPE' == get_post_type()) echo '<style type="text/css"> #favorite-actions {display:none;} </style>'; } add_action('admin_head', 'hide_that_stuff');The example above does “hide” the title. Did you select the template on the yarpp settings page, after you moved it to your theme folder?
Forum: Themes and Templates
In reply to: no "Appearance" button in left column menucorrect, I assumed you had admin access 🙂
Forum: Plugins
In reply to: [Author Box Reloaded] Duplicated autor box in twenty tenopen loop-single.php, look for a piece of code that has the comment “If a user has filled out their description, show a bio on their entries”, and remove it.
Forum: Themes and Templates
In reply to: no "Appearance" button in left column menuIt’s probably hidden, but it should still be accessible via e.g. http://mysite.com/wp-admin/theme-editor.php
Use a yarpp template, e.g.:
<?php if ($related_query->have_posts()):?> <h3>Related Posts</h3> <ul> <?php while ($related_query->have_posts()) : $related_query->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php else: ?> <?php endif; ?>Forum: Themes and Templates
In reply to: Sidebar image in TwentytenMake a new list item like this:
<li id="signup" class="widget-container"> //your stuff </li>and position it right below:
<ul class="xoxo">Should work!
Forum: Fixing WordPress
In reply to: Can I Turn My Banner into an Image?Sure, use this css with a background banner that is 1030×140.
#header { background: url("images/get2theleaguebanner.jpg") center top; margin: 0 10px; width: 1030px; height: 140px; }