central101
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: URGENT: Site Categories disappear after migration.Hi,
Yes all pluggins are active. Should I deactivate ate them and re-activate them?
Forum: Plugins
In reply to: Help with custom fields?thanks, I figured it out.. works now.. I decided to just use a form to show and hide the divs… with a javascript.
Forum: Themes and Templates
In reply to: Help with custom fields?Last try…
Forum: Plugins
In reply to: Help with custom fields?Last try..
Forum: Plugins
In reply to: Help with custom fields?Bump
Forum: Themes and Templates
In reply to: Help with custom fields?bump..
Forum: Plugins
In reply to: Help with custom fields?Anyone?
Forum: Themes and Templates
In reply to: Retrieve posts belonging to a certain time period??I sent you a message at your website t31os.co.uk
Forum: Themes and Templates
In reply to: Retrieve posts belonging to a certain time period??Hello MichaelH,
I’ve looked at the examples that are in those links and have also done some of my own research and I my head is just hurting.
So here’s the scoop. I am trying to edit a wordpress template and make two seperate tables with two different loops.
Here’s what I would like it to look like.
https://i28.photobucket.com/albums/c247/joduby/demo.gif
For now it only displayed in one table. If I could get someone to edit the code so there are two seperate tables I would be able to do everything else on my own.Thanks in advance. Theres is some unless in code below that I will remove once I get it working properly.
Here’s the code for the main index.
<?php get_header(); ?>
<div class=”content”>
<ul class=”nav”>
<li<?php if ( is_home() ) { echo ” class=\”current-cat\””; } ?>>” title=”Homepage” >Recently Added- <div class=”clear”></div>
- No categories
<?php
if (is_category()) {
$cat_id = get_query_var(‘cat’);
$cats = wp_list_categories(‘echo=0&title_li=&show_count=0&use_desc_for_title=0&child_of=’.$cat_id);
if ( $cats != ““) {
?>
<div class=”subnav”>-
<?php wp_list_categories(‘title_li=&orderby=name&show_count=0&use_desc_for_title=0&child_of=’.$cat_id); ?>
</div>
<?php } //if $cats != no categories ?>
<?php } //if is category ?>
<div class=”main”>
<div class=”listing”>
<div class=”head”>
<span class=”name”>Item Name</span>
<span class=”price”>Price</span>
<span class=”location”>Location</span>
<span class=”date”>Post Date</span>
<div class=”clear”></div>
</div>
<div class=”list”>
<?php $i = 1; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i % 2 == 0) { $alt = ” class=\”alt\””; } else { $alt = ” class=\”no\””; } ?>
<div<?php echo $alt; ?>>
” title=”<?php the_title(); ?>”>
<span class=”image”>
<?php if ( get_option(‘main_page_img’) == “yes” ) { ?>
<div class=”main_page_img” style=”background: #FFF url(<?php echo get_bloginfo(‘template_url’).”/img_resize.php?width=50&height=50&url=”;?><?php cp_one_img(get_the_content()); ?>) center no-repeat”></div>
<?php } else {
$ii = 1;
foreach((get_the_category()) as $category) {
if ($ii == “1”) {
echo “<img src=\””.get_bloginfo(‘template_url’).”/images/category-icons/”.get_option(“cat$category->cat_ID”).”.png\” alt=\”$category->cat_name\” title=\”$category->cat_name\” />”;
$ii++;
}
}
}
?>
</span>
<span class=”name”><?php if ( strlen(get_the_title()) > 30 ) { echo substr(get_the_title(), 0, 30).”…”; } else { the_title(); } ?></span>
<span class=”price”><?php echo get_option(‘currency’); ?><?php cp_price(get_the_content()); ?></span>
<span class=”location”><?php cp_location_single(get_the_content()); ?></span>
<span class=”date”><?php the_time(‘F jS, Y’); ?></span>
<div class=”clear”></div>
</div>
<?php $i++; unset($alt); ?>
<?php endwhile; ?>
<div class=”navigation1″>
<div class=”navigation2″>
<div class=”alignleft”>
<?php next_posts_link(‘<img src=”‘.get_bloginfo(‘template_url’).’/images/back.jpg” alt=”Older Entries” />’) ?>
</div>
<div class=”alignright”>
<?php previous_posts_link(‘<img src=”‘.get_bloginfo(‘template_url’).’/images/next.jpg” alt=”Newer Entries” />’) ?>
</div>
</div>
<div style=”clear:both;”></div>
</div>
<div style=”clear:both;”></div><?php endif; ?>
Forum: Fixing WordPress
In reply to: WordPress SEO Problem. NEED HELP!Bump
Forum: Fixing WordPress
In reply to: New wordpress posts are not being indexed.Thank You; I will try these out and let you know how they work out.
Forum: Themes and Templates
In reply to: How to use the “get_posts” tag?Anyone?
Forum: Fixing WordPress
In reply to: New wordpress posts are not being indexed.Hello,
Thanks for the reply. I will be changing the double quotes in a few moments.
I was using the All In One SEO for to give unique descriptions for each post how-ever for some reason the plugin was causing my blog to not repond. So i’ve deleted the plug-in all together and I’ve been meaning to go into the code and put the proper mata tags aind descritions in but I can’t figure out where to do it.
I was editing the hearder.php file and I added the code “<meta name = “description” content = “Find all your favorite …” />” Thinking it would give my website a unique description when you search the url google because as of now it just shows whats posted on my website for the descrption. How can i make it so that the description for each individal post will be the content of the post?
Could you directy me to a website that will give me info on setting my meta tags and descriptions manually? Also, I am trying to add a unique name for posts only for example. The post title would be “Zoolander” and the meta title would be “Watch Zoolander.” I added single_post_title(Watch ); echo ” : “; bloginfo(‘name’); Before the post title but it put watch infront of my page titles aswell and not only my posts.
Hopefully I have made some sence. Thanks for the reply. Hopefully some of these things will help me. The google bot is on my website all the time but it never grabs any pages or content.
Thanks again.
Forum: Fixing WordPress
In reply to: New wordpress posts are not being indexed.no support here.. Jees..
Forum: Fixing WordPress
In reply to: New wordpress posts are not being indexed.Bump