Forum Replies Created

Viewing 15 replies - 76 through 90 (of 98 total)
  • Forum: Fixing WordPress
    In reply to: Admin screen white
    Thread Starter astima

    (@astima)

    I know you’re limited because it’s a premium theme. I did try upgrading WordPress and it did not make a difference, so I went back to the 3.2.1. because it was messing up some of my plug-ins. If it had worked I would have left it.

    I contacted the developer of my theme and their only suggestion was reload WordPress. because other themes work does that mean there is an issue with the theme.

    Thread Starter astima

    (@astima)

    I have been working on this site for nearly 2 months now and there are only a few issues left to straight out.

    On my homepage under What’s New and Coming Soon I would like to include the titles of the last three posts in those categories.
    At my index page I included the code <?php include_once('includes/latest.php'); //include latest articles ?>

    And the code for latest.php it is: http://pastebin.com/f3jjwfVB

    Right now the code that is in latest.php is the code that came with the template. Their code displays the title of the latest post no matter what the category. I don’t want that. I want the last three posts in any specific category. If I insert my code the way it is now the page only loads until it reaches the div titled left.

    Thread Starter astima

    (@astima)

    What am I missing to make this work:

    global $post;
    $args = array( 'posts_per_page' => 3, 'category' => 4 );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) :	setup_postdata($post); ?>
    	<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

    Thread Starter astima

    (@astima)

    So using get posts is a better option. If I am understanding what the Codex says this is more all the lines of what I should be using:

    global $post;
    $args = array( 'posts_per_page' => 3, 'category' => 4 );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) :	setup_postdata($post); ?>
    	<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

    Forum: Fixing WordPress
    In reply to: Jquery UI
    Thread Starter astima

    (@astima)

    No matter what I write this bit of code is giving me trouble. I have written it every way article suggests. what else could it be?

    <script>
      jQuery(document).ready(function(){
        jQuery('#flip').jcoverflip();
    
      });
    </script>

    Forum: Fixing WordPress
    In reply to: Jquery UI
    Thread Starter astima

    (@astima)

    is that in a yes to it could be an issue with Jquery noconflict?

    Forum: Fixing WordPress
    In reply to: Jquery UI
    Thread Starter astima

    (@astima)

    here is the function that only included in my functions.php

    function my_scripts_method() {
       // Change the uri to where jquery.jcoverflip.js is at.
       wp_register_script('jcover', ''.get_template_directory_uri().'/scripts/js/jquery.jcoverflip.js', 'jquery');
        wp_enqueue_script( 'jcover' );
    
       wp_enqueue_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery'), '1.8.16');
       wp_enqueue_script('jcoverflip');
     }
      add_action('wp_enqueue_scripts', 'my_scripts_method');
    ?>

    prior to adding this function I was having issues these scripts were not loading. But now they do and the only error message I have left is about $. could it be an issue with the Jquery noconflict?

    Forum: Fixing WordPress
    In reply to: Jquery UI
    Thread Starter astima

    (@astima)

    okay, so I read through the file and I have done those things. I had a working on this for three days. And the only error message I have left to address is: $ is not define

    here is a page of a site where I am trying to use Jquery:http://www.stimadesigns.com/hunterdondistributors/our-portfolio/beer-2/

    if you cannot help me I would really appreciate if you point me to someone who can. I am really trying hard to make this work.

    thanks

    Thread Starter astima

    (@astima)

    I made that change, but I am not sure if I did it correctly. Probably not, since it’s not working. I pasted my code in paste bin. Here is the link. I’m not very good with a if statement.

    Thread Starter astima

    (@astima)

    Would you be able to recommend anywhere else I could post this question. I know Jquery has a fourm.

    Thread Starter astima

    (@astima)

    keesiemeijer did you have any luck finding anything in the two files that I put in pastebin. Thanks

    Thread Starter astima

    (@astima)

    Im not sure if I am looking in the right spot, but when I look in the folder wp-includes/js/jquery the file jquery-ui.min.js is not in there, but jquery.js is. I’m not sure if that is where they are supposed to be located. jquery-ui.min.js is located in my theme/scripts/js. I don’t know if this helps but I thought I would pass it along.

    Thread Starter astima

    (@astima)

    I tried it with the header you gave me and still no success. That is where I have the jquery.jcoverflip.js. If there is anything else you can think of I would appreciate it otherwise I’ve taken up enough of your time. Thank you for your patience.

    Thread Starter astima

    (@astima)

    Here is my functions.php (http://pastebin.com/6W54xBCa)

    I know there is a typo in the get_template_directory_url

    Here is my header.php (http://pastebin.com/6tA4J4TW

    In case you need it here is the code for the Jquery flip (http://pastebin.com/t3SPsZfV

    I put everything back to the way it was.

    I greatly appreciate your help. Once we get this working I have a question about the function that we added. I want to fully understand exactly what it’s doing so I know how to do it myself next time.

    Thread Starter astima

    (@astima)

    I had a typo (I had .uri instead of .url) but now my page will not load. While this is a setback, I feel as though I am getting closer.

Viewing 15 replies - 76 through 90 (of 98 total)