Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter sarah.osborne

    (@sarahosborne)

    Additional info:

    these are the links to the js/css for the tabs

    <link type="text/css" href="/wp-content/uploads/css/custom-theme/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
    <script type="text/javascript" src="/wp-content/uploads/js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="/wp-content/uploads/js/jquery-ui-1.8.16.custom.min.js"></script>

    when this line is taken out, the slider works, but the tabs dont
    <script type="text/javascript" src="/wp-content/uploads/js/jquery-1.6.2.min.js"></script>

    these are the names of the js files for the slider
    unpointzero-slider/libs/cycle.js
    unpointzero-slider/libs/slider-mouseover.js
    unpointzero-slider/libs/cycle-nav.js
    unpointzero-slider/libs/slidercfg.js
    unpointzero-slider/libs/jquery.cycle.all.min.js

    Forum: Fixing WordPress
    In reply to: jQuery UI tabs
    Thread Starter sarah.osborne

    (@sarahosborne)

    aaah, ok i know why my code didnt show because it was more then ten lines! haha I will break it up. try 3-

    <script>
    	$(function() {
    		$( "#tabs" ).tabs();
    	});
    	</script>

    thats the script to precede the tabs.

    <div class="homeposts">
    
    <div id="tabs">
    	<ul>
    		<li><a href="#tabs-1">News</a></li>
    		<li><a href="#tabs-2">Our Quality</a></li>
    	</ul>

    the tabs

    <div id="tabs-1">
    <?php query_posts('cat=13&posts_per_page=2');
    while (have_posts()) : the_post(); ?>
            <h1>Posted on <?php the_time('F jS, Y') ?></h1>
            <h2><?php the_title(); ?></h2>
            <div class="entry-content"><?php the_excerpt(); ?></div>
    <hr />
    <?php endwhile; ?>
    </div>

    tab one with my first query
    `<div id=”tabs-2″>
    <?php query_posts(‘cat=12&posts_per_page=3’);
    while (have_posts()) : the_post(); ?>
    <h1>Posted on <?php the_time(‘F jS, Y’) ?></h1>
    <h2><?php the_title(); ?></h2>
    <div class=”entry-content”> <?php the_excerpt(); ?> </div>
    <hr />
    <?php endwhile; ?> </div> </div> </div>`
    last tab, 2nd query, closing divs

    Forum: Fixing WordPress
    In reply to: jQuery UI tabs
    Thread Starter sarah.osborne

    (@sarahosborne)

    <script>
    	$(function() {
    		$( "#tabs" ).tabs();
    	});
    	</script>
    
    <div class="homeposts">
    
    <div id="tabs">
    	<ul>
    		<li><a href="#tabs-1">News</a></li>
    		<li><a href="#tabs-2">Our Quality</a></li>
    	</ul>
    	<div id="tabs-1">
    <?php
    query_posts('cat=13&posts_per_page=2');
    while (have_posts()) : the_post(); ?>
            <h1>Posted on <?php the_time('F jS, Y') ?></h1>
            <h2><?php the_title(); ?></h2>
            <div class="entry-content">
    		<?php the_excerpt(); ?>
            </div>
    <hr />
    <?php endwhile; ?>
    	</div>
    	<div id="tabs-2">
    <?php
    query_posts('cat=12&posts_per_page=3');
    while (have_posts()) : the_post(); ?>
            <h1>Posted on <?php the_time('F jS, Y') ?></h1>
            <h2><?php the_title(); ?></h2>
            <div class="entry-content">
    		<?php the_excerpt(); ?>
            </div>
    <hr />
    <?php endwhile; ?>
    	</div>
    </div>
    
    </div>

    dont know why my code didnt show, but here it is again. you can see where I have my queries, just delete that and put in your content. I didnt do the de-register and it was just fine, but then I loaded an image slider and the image slider isnt working, do you think that is why?

    Forum: Fixing WordPress
    In reply to: jQuery UI tabs
    Thread Starter sarah.osborne

    (@sarahosborne)

    I did figure it out! I added to the head:

    <link type="text/css" href="/wp-content/uploads/css/custom-theme/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
    <script type="text/javascript" src="/wp-content/uploads/js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="/wp-content/uploads/js/jquery-ui-1.8.16.custom.min.js"></script>

    replace the source on each to where you upload the .js and .css files

    and then where ever you put your tabs

    [Code moderated as per the Forum Rules. Please use the pastebin]

    With the help of a different plugin (exec-php) I was able to put seperate queries in it and put it in my widget text area

    https://texasspineandjoint.724impact.com/ (the site is still in development but you can see on the left side where I used tabs.)

    Thread Starter sarah.osborne

    (@sarahosborne)

    Thanks, worked perfectly for the posts. We decided not to worry about the users, those will be set up later if need be.

    Thread Starter sarah.osborne

    (@sarahosborne)

    ok so i replaced the title line with
    <?php thematic_postheader(); ?>
    and that gave me By ADMIN | Published: DECEMBER 6, 2011 | Edit
    if anyone has a way to make it so that By ADMIN isnt there it would be helpful.

    Thread Starter sarah.osborne

    (@sarahosborne)

    <div class="entry-meta"> <?php the_date(); ?> </div>
    this adds the date to the first post, but not all three?

    Thread Starter sarah.osborne

    (@sarahosborne)

    this is what i currently have

    <?php
    
    query_posts('cat=3&posts_per_page=3');
    while (have_posts()) : the_post(); ?>
    	<h2 class="entry-title"><?php the_title(); ?></h2>
            <div class="entry-content">
    		<?php the_excerpt(); ?>
            </div>
    <?php endwhile; ?>

    this is doing exactly what i need buuuuut… no entry-meta ??

    anyone have a line of code i can add to get the date posted?

    Thread Starter sarah.osborne

    (@sarahosborne)

    can someone supply me with the proper code for the loop here? everything i’ve tried doesnt display the posts!

Viewing 9 replies - 1 through 9 (of 9 total)