wp_guy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Make … in […] clickableMaybe it’ll be easier to use 4k’s suggested plugin… your call ??
Forum: Fixing WordPress
In reply to: Make … in […] clickableyay… the funky character you mention is supposed to be an ellipsis character which is different from three points “& # 8 2 3 0 ;” without the spaces… I’m unable to paste it here without it converting to the actual ellipsis…
Like this:
Forum: Fixing WordPress
In reply to: show only preview of the post?You have to use the <!–more–> tag in your posts, more info here:
https://codex.www.ads-software.com/Customizing_the_Read_More
Forum: Fixing WordPress
In reply to: Make … in […] clickableAdding the following code to the functions.php of your theme should do the trick:
function clickable_ellipsis($content){ $searchfor = '/\[(…)\]/'; $replacewith = '[<a href="'.get_permalink().'">$1</a>]'; $content = preg_replace($searchfor, $replacewith, $content); return $content; } add_filter('the_excerpt', 'clickable_ellipsis');
Forum: Themes and Templates
In reply to: Posts Not Lining Up ProperlyLooks like a CSS floating problem.
Try adding this to the end of the style.css file of your theme:
.postinfo { clear: both; }
Forum: Fixing WordPress
In reply to: Multiple RSS feeds for Multiple CategoriesIt’s built in WordPress already.
Try:
https://YOURBLOGADDRESS.com/category/THECATEGORY/feed (if you’re using pretty permalinks)
Or:
https://YOURBLOGADDRESS.com/?feed=rss2&cat=CATEGORYID (where CATEGORYID is the ID of the category.
Forum: Themes and Templates
In reply to: Manipulating Theme TemplatesI think the best way would be to create a different page template instead.
Forum: Themes and Templates
In reply to: Theme: Connections Reloaded 1.5It seems that you have to edit the header.php file of the theme.
Replacing this:
<ul id="topnav"> <li><a href="<?php bloginfo('url'); ?>" id="navHome" title="Posted Recently" accesskey="h">Home</a> | </li> <li><a href="/about/" id="navAbout" title="About the Author" accesskey="a">About</a> | </li> <li><a href="/archives/" id="navArchives" title="Posted Previously" accesskey="r">Archives</a> | </li> <li><a href="/links/" id="navLinks" title="Recommended Links" accesskey="l">Links</a> | </li> <li><a href="/contact/" id="navContact" title="Contact the Author" accesskey="c">Contact</a></li> </ul>
For just this:
<ul id="topnav"> <li><a href="<?php bloginfo('url'); ?>" id="navHome" title="Posted Recently" accesskey="h">Home</a> | </li> </ul>
Forum: Themes and Templates
In reply to: Browse Posts on Category PageThe same previous/next links used in the main page should work just fine:
<?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>
Forum: Fixing WordPress
In reply to: Substr function:^)
Forum: Fixing WordPress
In reply to: Permalink in FIRST image?Thanks ??
Forum: Fixing WordPress
In reply to: Substr functionLOL
Forum: Fixing WordPress
In reply to: Permalink in FIRST image?I once faced the same dilemma ^_^.
Here is the code that I came up with:
function link_image($content){ $searchfor = '/(<img[^>]*\/>)/'; $replacewith = '<a href="'.get_permalink().'">$1</a>'; if (is_single() === FALSE){ $content = preg_replace($searchfor, $replacewith, $content, 1); } return $content; } add_filter('the_content', 'link_image');
Copy and paste that code into your functions.php file, and you’re all set.
Cheers!
Forum: Fixing WordPress
In reply to: Substr functionYou can use multiple loops.
Something like:
<?php query_posts('showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> the_excerpt(); <?php endwhile;?>
Forum: Fixing WordPress
In reply to: How do you create a group blog that multiple users can post to?Of course, it depends on the role you give each user.
More about roles here.