• Posts not showing up on sit.

    Pages are showing up fine, but not posts.

    You can see what the error is when you go to:

    https://freebrowsergamelist.com/tribal-wars-review/

    Just scroll down to the bottom and you’ll see what it says.

    If anyone can just give me some advice, and possibly inform me of what .phps deal with posts, I might be able to fix it.

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Function ‘mywebsite_posted_on()’ doesn’t exist. try deleting that line in content.php. it’s line 24. you can see full path and line where it is if you read bottom line on your site.

    Thread Starter usbmp06

    (@usbmp06)

    While that did take the error away, it messed up the entire page :|. Something I should mention is that “mywebsite” is the name of my theme… It’s my theme :)… It’s a part of content.php

    for example:

    <?php twentyeleven_posted_on(); ?>

    ^^That’s straight off of twentyeleven theme, content.php, line 24.

    These seems to be a theme error, check for updates, to make sure you can activate the default theme to see if it displays the posts (if you are not using custom posts).

    do you have this in your functions.php

    if ( ! function_exists( 'mywebsite_posted_on' ) ) :
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     * Create your own twentyeleven_posted_on to override in a child theme
     *
     * @since Twenty Eleven 1.0
     */
    function mywebsite_posted_on() {
    	printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'mywebsite' ),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'mywebsite' ), get_the_author() ) ),
    		get_the_author()
    	);
    }
    endif;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when trying to make a new post’ is closed to new replies.