Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ve got the same issue. Whole posts are displayed and the “more…”-links never show up.

    <?php global $more; $more = 0; ?>
    did not solve the problem. It made the_content('more...') display a link to the same page, displaying only the first part of the post.

    Setting globals like this doesn’t seem wise and shouldn’t be necessary.

    Is this a bug?

    A more elegant solution that will not interfere with any tags generated by wordpress and that doesn’t require any work when writing the posts would be simply adding this to your stylesheet:

    .your-post-class-here > p:first-child {
    	color: red;
    	}

    This example would for instance make every first paragraph red.
    Cheers.

    You should be editing style.css instead.
    Find

    #page {
    
    	margin: 20px auto;
    	padding: 0;
    	width: 840px;
    
    	}

    And mess with the margin. Setting it to 0px auto would make your header lick the top of the browser.

    Thread Starter jomik

    (@jomik)

    Thanks! It did explain a few things. 🙂
    I tried a different approach that doesn’t involve a custom template, defining this function:

    function is_gallery(){
    	if($_GET['post_type'] == 'attachment' ){
    		return true;
    	}
    	return false;
    }

    Then I do this in index.php:

    <?php while (have_posts()) : the_post(); ?>
    		<?php if(is_gallery()) : the_attachment_link($post->ID, false); else : /*regular post-stuff here*/ endif; ?>
    <?php endwhile; ?>

    Requesting the main page yields a blank page, as expected.
    Typing …/?post_type=attachment in the address bar of my browser gives me “Missing attachment link”‘s. It appears wordpress is still getting only posts from the database. Why is this not working?

    edit the style.css file to something like:

    #nav {
    color: #F0F0F0;
    }

    Refer to W3schools css tutorials if you have further questions 😉

    Using your FTP client, find the themes folder (wordpress\wp-content\themes) and change the permission to ‘777’. There is also an option to set the permissions for files and subfolders, make sure it is checked. This will allow wordpress to modify the header image files. Refer to the documentation for your FTP client for details on how to change file permissions.

    If you get this error message it is probably a good idea to check the file permissions for the uploads folder. If the wp-content folder is not writeable the uploads folder will not be created on your first upload and uploading will not work. To fix this you can either create the uploads folder manually and set its permissions to ‘777’ or change the permissions for wp-content to ‘777’. Also note that some plugins may require the plugin folder to be writeable as well.

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