mcl
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Call single.php if only one post in search.phpAfter much more muddling. I may have found a solution, it may not be ideal, but it seems to work. Rather than calling single.php, I just call the permalink of the singly found post.
<?php global $wp_query; while (have_posts()) : the_post(); if ($wp_query->found_posts == 1) { header("Location:" . get_permalink()); } ?>
If there is a better solution or advice that this is not the way to do it, please advise.
Richard
Richard
Forum: Fixing WordPress
In reply to: ShortCodes, MySQL, (Newbie problem)Thank you for explaining that. I always wondered where it was.
It would be better next to the reply box !!!
Forum: Fixing WordPress
In reply to: ShortCodes, MySQL, (Newbie problem)Genius – Many Thanks.
I needed to declare
$wpdb
as a global, rather than the includes, I had used. Perhaps the includes, were an earlier way of doing things ?Forum: Plugins
In reply to: wp-table ReloadedGenius.
To move both to the left worked as you suggested.
Thanks
Richard
Forum: Plugins
In reply to: WP-Table-Reloaded: Search Box Missing and Table WidthTobias, very helpfully had a look at my site and gave several suggestions.
The one that seemed to work, was removing ‘Firebug Lite’ a javascript lookalike for Chrome and other non Firefox browsers. The javascript was obviously causing a conflict with Wp-table-reloaded’s javascript.
Thank you Tobias and congratulations again on an excellent Plug-In.
Richard
Forum: Plugins
In reply to: WP-Table-Reloaded: Search Box Missing and Table WidthUnfortunately the site is behind a password protected site. I would be happy to give you access, but I do not know how to communicate that to you.
Richard
Forum: Plugins
In reply to: Best way to accomplish *Simple* GalleryI also have this requirement.
I just need a slide show for all the images I have in a directory.
I thought I had found one in Creative Clans, until I discovered it was only for widgets. It had a fix for embedding in posts, but I am far too simple a soul to understand that and in any case, I do not need that complication in my life.
I just want a shortcode [Bob-Slideshow directory path]
Any pointers please
Forum: Fixing WordPress
In reply to: My Font Size Being OverriddenI am just a beginner with WordPress, first attempt at using it and because I am an OLD programmer, I decided I wanted my site not to look like a blog, but an info site, using blogs like pages, because I needed categories.
My problem was that I wanted my tag list, which is displayed below the blog to be in a small font (0.7 or 0.8em), as I imagined most users would not need it. No one but me can be logged in, but it does not display any differently, whether I am logged in as admin or not logged in as a guest – I still get the 12pt style font-size. As you suspected !important did not work either
I use Chrome, because Firefox ( + 2 Extensions) is so slow to load, worse than Adobe Reader. I have also installed FireBug Lite via Javascript, but its output is a far too advanced for my ancient brain.
I have searched the site for any file with
12pt
in it and I can only find two, which have no bearing whatsoever on Tags.So thank you again for your help and I am at a loss to understand where it has come from.
UPDATE
It was my fault. Because I am using wp_tag_cloud() to display tags and I wanted them all the same size, I had defined smallest and largest to be the same size and not really knowing what I was doing I had used 12 as my value.
Is there a another way to display all tags, so that I could use CSS to control the size ?
Many apologies for wasting everyone’s time, but at least I have learned a bit more about WordPress.
`Forum: Fixing WordPress
In reply to: My Font Size Being OverriddenThank you for your answers. I use Chrome so I was able to glean the following.
The TAG problem has inserted a font-size: 12pt from somewhere, but also has an inserted an extra
class='tag-link-12'
<a href=..../info/?tag=trees' class='tag-link-12' title='1 topic' style='font-size: 12pt;'>Trees</a>
The EDIT problem is as follows, no inserted font-size but an extra reference to a class not in my style.css. My style.css only contains my entries, as I started from a very simple theme and deleted it all.
<SPAN class="cite"> (11/02/2010 6:15 pm) <a class="post-edit-link" href=" .../info/wp-admin/post.php?action=edit&post=428" title="Edit post">Edit</a>. </SPAN>
Thanks Again
Forum: Fixing WordPress
In reply to: My Font Size Being OverriddenUnfortunately it is only on my server, while I am testing.
Thank you for your interest.
Forum: Fixing WordPress
In reply to: get_post or query postWow – Many Thanks.
I will give that a try as soon as I can and when I find out how to use direct Select statements with WordPress.
When I get this working, it will open up a whole new way of working with WordPress, as I have a problem, which would be better solved by using an external MySQL Database.
Many, many thanks.
Forum: Fixing WordPress
In reply to: Search Page doubling as a category and tag pageForgot to code the important line
<?php include( TEMPLATEPATH . '/header2.php' ); ?>
Forum: Fixing WordPress
In reply to: Search Page doubling as a category and tag pageEventually worked it out. There maybe a better solution.
In search.php, tag.php and category.php
have <?php get_header(); ?>
print out comments about search or tag or category
then include a separate file with the result formatting and the sidebar and footer callsThe reason for this is to allow any changes in the results layout, to be made in one place only (I only list titles and metadata)
Forum: Fixing WordPress
In reply to: Newbie Frustration: WP or Editor adds line breaksI have not fixed the problem, but I have come up with a solution.
If I can not stop the
s being created, well how about making them not work.
So I got out the CSS book and tried
BR {display: none}
Eureka it worked. So now I enclose my paragraphs in a
<DIV>
and just add
ParaClassName BR { display: none} to my CSS file.Not ideal but at least it means I can produce something.
If anyone has a better solution, I would still like to know about it.
Forum: Fixing WordPress
In reply to: Newbie Frustration: WP or Editor adds line breaksThe < BR / > tags seem to have been removed from my example, as there was no preview of post available. I am not very good with these forum editors, but I am sure you know what I meant.