huggie
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Alternating view of postsEdit: It would appear I was too slow!
I don’t think that the article you linked to is what you’re after as it would only work if post numbers are sequential.
I’m sure that there’s a plugin for this, but if not, the route I’d take is to start a counter outside “the loop”, on each iteration of the loop you check the status of the counter using the php modulus operator as seen in that article, then increment the counter by 1.
Forum: Themes and Templates
In reply to: Search Location in CodeIt’s your theme that’s putting it that way around.
The page that contains that search form (and shouldn’t be edited as it’s part of the core) is /wp-includes/general-template.php and the PHP looks like this:
$form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" > <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> <input type="text" value="' . esc_attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> </div> </form>';
As you can see from this, if it was displayed without a stylesheet, the label would be in front of the input field. You’ll need to look to your CSS for this I think.
Forum: Themes and Templates
In reply to: How do I make a Pages menu without <ul> … <li> ?Try this:
<?php $args = array( 'sort_column' => 'menu_order', 'exclude' => '120, 121' ); $pages = get_pages($args); foreach ($pages as $page){ echo $page->post_title; } ?>
A few notes about your code:
1. You don’t need to specify all values to get_pages().
2. Check the defaults, not specifying these will save you time.
3. !Most importantly! Make sure you actually pass $args into the function, not sure what I mean, check your original code. You specify all the arguments in $args, but dont them use them when calling get_pages() ??My suggestion would be to install a plugin for the contact form, something like Contact Form 7 or Enhanced WP Contact Form and then use the styles of the original form to style the new Contact Form.
Don’t try and take the code for the comment form, it will probably be more hassle than it’s worth.
Forum: Themes and Templates
In reply to: How to make custom fields not output a list?Use get_post_custom() instead. This way you can manipulate the response as required with PHP.
Forum: Themes and Templates
In reply to: Theme does not activateDo you have a link to the site? It sounds as though either you have a page in the directory that’s taking precedence over index.php, or the wordpress instal has incorrect settings.
If you check where the Visit Site link is pointing, is it looking at the root folder of the site? Is that what you were expecting?
Huggie
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itThis was resolved by renaming the index.htm file that was already in the webroot directory as it was invoked prior to index.php.
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itThanks mrmist
Forum: Themes and Templates
In reply to: sliding door template headerDo you have an example? A URL maybe where we can see what you’re talking about?
Regards
HuggieForum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itJust sent it, I’ll post the solution here once sorted.
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itOK, do you have an email address I can contact you at, is it the one on the site? info@thegenie… etc?
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itIs this the new theme?
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itWhat’s the zip file name?
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itOK, I’m back.
If you open cpanel and go to your file manager, you should see an upload icon. Upload the zip file to /public_ftp/home/genie/ and then post the file name here.
Forum: Themes and Templates
In reply to: Uploaded a new theme – can’t access itYou can do it through the cpanel file manager if you wish. Click the upload icon, it has a folder and a green arrow on it.
Leaving work now, but will pick this up when I get home.
Huggie