originalas
Forum Replies Created
-
Solved this by using custom field, since I needed only remote url to image. ??
<img src="<?php $feat=get_post_meta(get_the_ID(), 'featured_url', true); if($feat){echo $feat;} else {echo get_template_directory_uri(), '/images/nothumb.png'; } ?>" class="attachment-featured wp-post-image" alt="<?php the_title(); ?>">
Forum: Themes and Templates
In reply to: Custom archives, but not categories?Thanks, that helped. ??
Very simple code to show all posts. ??<ul> <?php wp_get_archives('type=postbypost&limit=9999&format=html'); ?> </ul>
Forum: Plugins
In reply to: cut off entries after certain number of characters?Awesome, exactly what i was looking for!
Great Thanks!
Forum: Themes and Templates
In reply to: multiple categories link?pls help me, i can’t find anything about this in documentation. ??
Forum: Themes and Templates
In reply to: Cut too long titles?well, that function doesn’t work. It doesn’t change anything. :/
The commets are cut off, because they have cut off funkction, but recent category titles are not. :/
Forum: Themes and Templates
In reply to: Last 3 post on front page from one category?Cool! it works! ?? Thanks
Forum: Fixing WordPress
In reply to: Category and page linkscan you post exact link for WordPress 2.5.1?
i’ve found lots of solutions, but non of them works with WordPress 2.5.1 ??
except last, that doesn’t solve anything with url example.com/./foo/Normally the categories would look like this:
https://www.clausheinrich.com/category/web-directory/with the change it will become:
https://www.clausheinrich.com/web-directory/Find the file wp-includes/classes.php and about halfway down you can change the settings.
To remove the category like above do this:$this->category_structure = $this->front . ‘category/’;
change it into this:
$this->category_structure = $this->front;
Update:
In the WordPress 2.1 branch you will find the code in wp-includes/rewrite.php
Thanks to Caio Proiete for informingWordPress Version 2.3.x branch:
Delete this:
$this->category_structure = $this->front . ‘category/’; elseWordPress Version 2.5.x branch:
I have not tried this personally, but reading from comments it is should be possible to now use the Base Category feature to disable the “category” directory.
Brad mentions in comment #27:
Adding the /. in Settings – Permalinks -Category Base field works fine in 2.5.
Where are ppl seeing the /. in the URL? (e.g. www .example.com/./foo/)
I’m having no problems with it.Forum: Fixing WordPress
In reply to: Category and page linksnow i got rewrite rules like
category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$ == index.php?category_name=$1&feed=$2 category/(.+?)/(feed|rdf|rss|rss2|atom)/?$ == index.php?category_name=$1&feed=$2 category/(.+?)/page/?([0-9]{1,})/?$ == index.php?category_name=$1&paged=$2 category/(.+?)/?$ == index.php?category_name=$1
i don’t know how to remove /category/ base. :/
Forum: Fixing WordPress
In reply to: Can i have custom tamplates for each category?i’ll try ??
Forum: Fixing WordPress
In reply to: Two blogs in one? :)installation is a piece of cake. ?? Ok, i’ll try to install two more blogs on subdomains.
but how to take RSS from both and repost to main blog?
Forum: Fixing WordPress
In reply to: Two blogs in one? :)i’m thinking of splitting my blog in to two main categories like games and gear, but i don’t know how to add custom tamplates and sidebars to each category…