Sean
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Footnotes with a twistThanks David, I was afraid of that. I tried using preg_replace (as suggested by another helpful WP user who posts here) to take out all the footnote css tags in my RSS feeds. I’m not sure I did it correctly though, and like you said the problem of overlapping still remains.
I’ll look out for a javascript solution, though I prefer not to use javascripts if I can get away with it.
Thanks for your input.
Forum: Fixing WordPress
In reply to: Replacing Code in Parsing PostsFor those new to PHP like me, this code will remove embedded tags and their contents. You can stick it in wherever you want the php to apply (in my case, within another plugin).
function remove_embedded ($content) {
return preg_replace('/<tag>(.*)</tag>/',"",$content);
}
add_filter('the_content','remove_embedded');To understand the code you will want to read the notes appended to this page.
Thanks again filosofo.
Forum: Fixing WordPress
In reply to: Children of Categories not ShowingI’ve isolated the problem as being in the heirarchy option. My blog is no longer able to display posts in a hierarchy. I have only edited theme php files and some plugins I used, which are unrelated to categories. Do you know what might be causing the problem?
Forum: Fixing WordPress
In reply to: Search Issues… Help please.. anyone?No problem DapHan.
As moshu said you could use conditionals – in this case, you would probably want to find this
<div class="storycontent"><?php the_content(__('(more...)')); ?></div>
and then wrap something like this around it:
<?php if (!is_search()) { /* Place div here */ } ?>
This will show no content if the page being displaying is a search results page. If you want it to do something else on search pages rather than show nothing at all, use the statement (after the end brace of the if statement)
else { /* Code for the action you want to take with search pages */ }
This may not be the cleanest way to do it – the classic theme seems to manage with a bare minimum of code, which is desirable. Sorry I can’t help much more – I’m new to php and WordPress too:)
Forum: Fixing WordPress
In reply to: CSS question I guessIf you want to apply css to output produced by the plugin, you will need to look at the plugin’s php file rather than your index.php or sidebar.php. The relevant code is the segment that starts with
foreach ($tags as $tag) {
I’m no programmer but I found that trial and error is usually a pretty straight-forward way of getting things done once you’ve found the source. I hope you achieve the look you’re going for. Let us know how you go:)
Forum: Fixing WordPress
In reply to: Replacing Code in Parsing PostsOh, ok – thanks:) I must have misread the php website.
Forum: Fixing WordPress
In reply to: Search Issues… Help please.. anyone?Do you know if you deleted search.php? If not, try looking inside for code like this:
<?php the_content('Read the rest of this entry ?'); ?>
Removing it and the tags around it should do the trick.
If you did delete the file, the simplest way to get it back would probably be to redownload the theme and copy search.php into your theme directory.
Hope that helps.
Forum: Fixing WordPress
In reply to: CSS question I guessYes you could use CSS, but it may not be so tidy, depending on how you want it to look. The simplest way I guess is to use a div with padding to the left:
.indented text { padding-left: /* pixel value here */; }
Where the pixel value for the padding is the distance from the start of the line to the bolded text.
If the distance from the start of the line to the bolded text is not static and you don’t want to position absolutely, you can use floats, which allow you to position elements relative to eachother without distances.
So you would put the text ‘Start of line’ in a div with the following property:
float: left;
And the rest in one which has:
float: right;
You can use the property
clear: /* none, both, left or right */
to ‘disallow’ floats on a given side or both. That is, if you useclear: left;
, that div will not allow floats on its left side.Hope this helps.
Forum: Fixing WordPress
In reply to: Replacing Code in Parsing PostsI’ve had a chance to study the links you gave me closer – thanks, they were very helpful. However I don’t see a php function I could use that will replace not just the tags, but their contents as well. Doesn’t
preg_replace
just replace one thing for another?Forum: Fixing WordPress
In reply to: Replacing Code in Parsing PostsThanks very much filosofo.
Forum: Everything else WordPress
In reply to: PLEASE!!! VERY IN NEED OF SOME HELP!!!!If it’s a matter of settings, you will probably want to check under ‘My Account’ on the dashboard rather than in the ‘Settings’ tab.
If you think it’s a code issue, check the contents of your post loop, which is everything in between
<?php while (have_posts()) : the_post(); ?>
and
<?php endif; ?>
in your index.php (also archive.php, page.php etc. if you have them).
After the date, you will want to add in this:
by <?php the_author()
It looks like you modified Kubrick, so my guess is it’s already there, but in comments tags.
Also, just FYI it helps to describe your problem in the title and not will all-caps. Just a friendly reminder:)
Forum: Fixing WordPress
In reply to: Gaining access to root directoryWhy thank you very much.
Forum: Fixing WordPress
In reply to: Gaining access to root directoryI don’t have experience with this particular company, but yes you will need an ftp account with the appropriate permissions. I suspect this is something you’d want to ask the company about.
As for the copy of the directory, yes, you can copy everything onto your computer as long as you have the relevant permissions.
Forum: Alpha/Beta/RC
In reply to: Feedburner plugin no working with RC2Thanks Otto:)
Forum: Alpha/Beta/RC
In reply to: Feedburner plugin no working with RC2Yes Otto42 you’re right. And you can replace the RSS link in the sidebar with the new Feedburner feed. The only problem with that is that people with browers which autodetect RSS feeds will sometimes still use the original WordPress feed, so the statistics won’t be accurate.