Forum Replies Created

Viewing 15 replies - 46 through 60 (of 60 total)
  • Thread Starter dmkjr

    (@dmkjr)

    As always I appreciate the help. I copied this CSS to my Custom CSS block and all went hay-wire. My images were displayed on top of each other and they took up majority of the screen. The title blocks went away too.

    I can add it back if you need to see what it did. As familiar as I am with this, I am now lost.

    Thread Starter dmkjr

    (@dmkjr)

    <div id='cssmenu'>
    	<ul>
    	<?php
    	$args = array(
    		'posts-per-page' => 10,
    		'cat'      => 11,
    		'order'    => 'DESC'
    	);
    	query_posts( $args );
    	if (have_posts()) :
    		while (have_posts()) : the_post();
    			echo "<li><a href='" . get_permalink() . "' class='post-wrap'>
    				<span class='post-loop-image'>";
    					if ( has_post_thumbnail() ) {
    						the_post_thumbnail();
    					}
    					else{
    						echo "<img src='https://i0.wp.com/hanahanpolice.com/wp-content/uploads/2013/04/unknown_person.png?fit=1200%2C1200' alt='default' />";
    					}
    				echo "</span>";
    			echo "<span class='wanted'>";
    			the_title();
    			echo "</span></span></a></li>" ;
    		 endwhile;
    	endif;
    	wp_reset_query();
    	?>
    	</ul>
    </div>

    That’s what I have after I edited. I had to add to close the loop, but no biggy. I just cannot for the life of me see why the “wanted” attributes aren’t being applied. Should work, in theory.

    Thread Starter dmkjr

    (@dmkjr)

    Endlyss,
    If you don’t mind and I’m not being too bothersome yet, you can check out the site and see how it’s displaying (https://hanahanpolice.com) it’s on the sidebar to the left.

    I think we are getting there, but I cannot get it to display. I copied your CSS above, edited where it needed and did the same with the html and put it in the widget. It’s displaying, but not as we are trying to get it to.

    Thread Starter dmkjr

    (@dmkjr)

    Thanks again. I’m trying to implement that now. It’s displaying and I’m getting there with it. WordPress is an awesome engine, and this WordPress community in the 8 years I’ve been apart of it has helped out a lot.

    I’ve forgotten more than I’ll ever learn again. I’ll keep this thread open until I get it displaying properly.

    Thanks Endlyss.

    Thread Starter dmkjr

    (@dmkjr)

    right now it’s just displaying

    IMAGE
    IMAGE
    IMAGE TITLE
    TITLE TITLE

    IMAGE
    IMAGE
    IMAGE TITLE
    TITLE TITLE

    Thread Starter dmkjr

    (@dmkjr)

    Endlyss, one last thing.

    I absolutely feel ridiculous now btw. I am trying to style the php to where it will display the image and then the text right next to it, wrapping it on the right instead of underneath the image.

    IMAGE TITLE
    IMAGE TITLE
    IMAGE

    IMAGE TITLE
    IMAGE TITLE
    IMAGE

    Something like that. I can’t seem to figure it out without using tables, which I absolutely don’t want to do.

    Thread Starter dmkjr

    (@dmkjr)

    Endlyss, again. You have been extremely helpful and the fastest to reply in support I have ever seen. I look forward to learning a lot more than I do now and perhaps get you to help me in the future ??

    Thanks again!

    Thread Starter dmkjr

    (@dmkjr)

    Guess I Should have atleast posted the code.

    <div id='cssmenu'>
    
    <ul>
    <?php
    $args = array(
    'posts-per-page' => 10,
    'cat'      => 11,
    'order'    => 'DESC'
    );
    query_posts( $args );
    if (have_posts()) :
    	while (have_posts()) : the_post();
    		echo "<div class='post-loop-image'><li>";
    			if ( has_post_thumbnail() ) {
    	the_post_thumbnail();
    	}
    	else{
    	echo "<img src='https://i0.wp.com/hanahanpolice.com/wp-content/uploads/2013/04/unknown_person.png?fit=1200%2C1200' alt='default' />";
    	}
    		echo "</div>";
    		echo " <span class='post_title'>" . the_title() . "</span></li>";
    	 endwhile;
    endif;
    wp_reset_query();
    ?>
    </ul>
    </div>
    Thread Starter dmkjr

    (@dmkjr)

    I could not have found better help. I’m pretty decent when it comes to figuring out why something in php is broken, but I’ve broken this now too many times and needed to reach our for help.

    Two things though, if you don’t mind clarifying. Everything works as advertised. However, how do I get the entire
    to have the rollover effect of the <div> tag. The rollover (entire div) should be a hyperlink to the post. <a href=… etc etc in there somewhere.)

    Other thing is styling. I know it’s going to be echo, just decorate where you have the two echo spots now? I need the get the image smaller, float the image and have the text (title) to the right. (https://hanahanpolice.com for a preview).

    Thread Starter dmkjr

    (@dmkjr)

    Man, you are awesome!. It works flawlessly. Is there a way if there is no featured image set it will display a default image? Such as a face with a question mark over it? I can make the image, just don’t know how to call upon that image.

    Thread Starter dmkjr

    (@dmkjr)

    Endlyss,
    First and foremost thanks for the help. I basically went straight to bad aggervated after I couldn’t get this last night.

    This is what I have put in, and it’s not displaying anything. My category is “11”.

    <div id='cssmenu'>
    <ul>
    <?php
    
    $args = array(
    'posts-per-page' => 10,
    'cat'      => 11,
    'order'    => 'DESC'
    );
    query_posts( $args );
    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post();
    		echo "<div class='post-loop-image'>";
    			if ( has_post_thumbnail() ) {
    			the_post_thumbnail();
    			}
    		echo "</div>";
    		echo "<span class='post_title'>" . the_title(); . "</span>";
    	 endwhile;
    php endif?>
    <?wp_reset_query(); ?>
    
    ?>
    </ul>
    </div>
    Thread Starter dmkjr

    (@dmkjr)

    Robert,
    Thanks for the response. I seen your response but was having difficulty while logging in remotely (VPN issues, yuck!). Since I’m checking on my vehicle laptop (Panasonic HUD), just noticed it’s running IE8. Let me update and see.

    However, if you can look at it in 8, you should see how it’s rendering.

    I don’t have an issue with the height. However, I am having an issue with the width.

    Images that are smaller than 400px screw with the look. The border for the grayscale will be larger.

    Anyone else having this issue?

    Forum: Fixing WordPress
    In reply to: MySQL errors

    I’m having the same problem.

    Warning: session_start() [function.session-start]: open(/tmp/sess_a5658671cb0494836638d787fb8d7af2, O_RDWR) failed: Read-only file system (30) in /home/dmkjr/public_html/wp-content/plugins/alinks/alinks.php on line 23

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/dmkjr/public_html/wp-content/plugins/alinks/alinks.php:23) in /home/dmkjr/public_html/wp-content/plugins/alinks/alinks.php on line 23

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dmkjr/public_html/wp-content/plugins/alinks/alinks.php:23) in /home/dmkjr/public_html/wp-content/plugins/alinks/alinks.php on line 23

    WordPress database error: [Can't create/write to file '/tmp/#sql_be7_0.MYI' (Errcode: 30)]
    SELECT * FROM wp_alinks_keyphrases ORDER BY RAND()

    That’s the error I’m recieving. Help?

    Forum: Installing WordPress
    In reply to: SQL Errors!

    I’m having problems. I’ve run WP for about 6 months now, and this is the first error. https://dmkjr.com is the address. Anyone know what the deal is?

Viewing 15 replies - 46 through 60 (of 60 total)