webipsum
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to limit the display by number of words? (Title in the Loop)peredur.
Today I use the functions.php:
function short_title($num) { $limit = $num+1; $title = str_split(get_the_title()); $length = count($title); if ($length>=$num) { $title = array_slice( $title, 0, $num); $title = implode("",$title)."..."; echo $title; } else { the_title(); }}And the index.php:
<a href="<?php the_permalink() ?>" rel="bookmark" title="Read: <?php the_title_attribute(); ?>"><?php short_title(73); ?></a>But the limit is in characters and I want it in words.
Tks…
Forum: Fixing WordPress
In reply to: Character limitation on the dashboard (post title)? Functions.php?tks.
I had already tested the “Limit the post title to X characters” and “Post Title Counter” and they do not work in WP 3.2.1.
🙂Forum: Fixing WordPress
In reply to: Character limitation on the dashboard (post title)? Functions.php?ipstenu. Tks.
But this function works in the index.php, single.php…
I would like worked in the ADMIN.Forum: Fixing WordPress
In reply to: Character limitation on the dashboard (post title)? Functions.php?Yes.
In Dashboard>>> Posts, not in single.php ..Note:
To run the code posted earlier, must run two more items:<script type="text/javascript" src="jquery-1.6.3.min.js"></script> <script type="text/javascript" src="jquery.limit-1.2.source.js"></script>Forum: Fixing WordPress
In reply to: How to limit the number of characters typed in the post titles?geeksfolder. Thank you for your attention.
I use this option to limit the amount of characters in the loop.
But I would like to see the character count, and its limitation when editing the post in the Admin.Forum: Fixing WordPress
In reply to: $_SERVER['HTTP_REFERER' x javascript:history.go(-1) ?Any tips or tutorial with an alternative to replace the javascript: history.go (-1) in WordPress?
Tks.Forum: Fixing WordPress
In reply to: Removing posts from the Uncategorized categoryEdit the post and remove and deselect category Uncategorized…
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?try to add a ‘wp_reset_query()’ after the loop of the first three highlight posts (for instance in line 36 of your pastebin code);
alchymyth: You are the Master. 🙂
Worked perfectly.
Thank you very much.overexposeddesign: I’ll read your tip. Tks.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?Pastebin, with the suggested changes (without layout (divs, etc.), for easy viewing.).
http://pastebin.com/pQ5v5Jnb
Selects perfectly, but does not perform paging.
Thank you.Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?Yes.
index.php:
1) display 3 most recent post (highlights).
2) display others posts, without the 3 highlights (offset=3). With pagination.Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?I’m sorry.
Thank you for your comment.Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?alchymyth.
Do you have any additional information?
Tks.Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?alchymyth.
Display posts: cat = 4,6,8,9 and posts_per_page = 8 and offset = 3, with pagination (wp-pagenavi).<?php get_header() ?> <div id="content"> <?php $query = new WP_Query('cat=4,6,8,9&posts_per_page=8&offset=3' . '&paged=' . $paged); ?> <?php if ($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Leia: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <?php endwhile; ?> <?php if(function_exists('wp_pagenavi')) : wp_pagenavi(array( 'query' => $query )); endif; ?> <?php else : ?> <?php endif; ?> </div><!-- content --> <?php get_footer() ?>Thank you for your attention.
{ipsum}
Hello friends.
I need to put on the menu (top), a link to the last post (category number 4).
When there is a new post the link should be replaced.
Please, what should I do?
Thank you and good week.
{ipsum}Forum: Fixing WordPress
In reply to: query_post for display a category, but excluding a post (by ID)?Thank you very much!
query_posts( array(‘cat’ => $category[0]->cat_ID, ‘post__not_in’ => array($id), ‘showposts’ => 4 ));
Works fine.
{ipsum}alchymyth:
Could you help me?
Option menu to open detail (single) last post, for a particular category?