Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter emelgosa

    (@emelgosa)

    Thank you,

    I used that in unison with smarter navigation plugin and it works.

    I also found that if you use a custom post order plugin it does a similar thing because it resets the default order of everything. I was trying to do this with pre_post_order but it didn’t seem to apply. I’ll have to do some more research on how the plugins do it but for now, this will work.

    Thanks for all your help,

    Eric.

    Thread Starter emelgosa

    (@emelgosa)

    Below is a quote from the link you sent me.

    “The other set of navigational aids for moving through your site control the next post and previous post links typically found at the bottom of your single/permalink post, such as any single post or article you have published on your site. These direct the user to move to the next or previous post in chronological order.

    My problem is that I’d like the next and previous link to follow the order provided in the previous query, however, the problem is that it ends up showing the single posts in chronological order. Any ideas on how to fix this?

    If you search the URL in google it shows up. There are a few things you can do to make your site more searchable. You didn’t really describe what you’ve done so I apologize if you’ve already done all of this.
    1. Changing your url permalinks to something more descriptive such as post name (Settings>Permalinks) helps search engines find keywords on your site.
    2. Create an account at https://www.google.com/webmasters/ and check your page for crawl errors.
    3. Edit your sitemap to contain priority, check frequency, mod date, and add your sitemap link to your robots.txt as well as to Google Webmasters.
    4. Check out Yoasts WordPress SEO. It will help you tune your pages to what search engine crawlers are looking for. It also does a great job creating clean updated sitemaps of your pages, posts, authors, categories, and/or tags.

    Once you’ve tuned your pages to SEO, added your sitemap in google webmasters, and pushed your site to get indexed through google webmasters, wait a few days and you’ll start seeing your page show up to the keywords you’ve specified in WordPress SEO

    You could edit the robots.txt to disallow any directories or pages with excessive errors, You could submit a sitemap of the pages and posts you want google to crawl, as long as none of those error out you should be good.

    I notice you already have a sitemap so including it in your robots.txt could also help with other search engines. Check out, Yoast WordPress SEO. It allows you to automatically create sitemaps of your site, including pages, posts, authors, categories and tags. It also allows you to edit robots.txt and .htaccess from the backend.

    WordPress creates robots.txt dynamically but you can always manually create it in your root directory. I’d recommend including the location of your sitemap in robots.txt as well.

    robots.txt sample:

    # DEFAULT WORDPRESS ARGS
    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/
    
    #DISALLOW ADDITION
    Disallow: /2013/05/23/
    
    # SITEMAP ADDITION
    Sitemap: https://moasphalt.org/sitemap_index.xml

    Thread Starter emelgosa

    (@emelgosa)

    Help! I’ve read though lots of forums and tried a lot of ‘fixes’ to no avail.

    Thread Starter emelgosa

    (@emelgosa)

    Thank you for the extra eyes. That fixed it.

    Thread Starter emelgosa

    (@emelgosa)

    This is what my filter output looks like

    add_filter( 'post_gallery', 'my_post_gallery', 10, 2 );
    function my_post_gallery( $output, $attr) {
    
    $output = '
                 <section class="gallery portfolio-square">
                    <div class="portfolio-items-wrap">
                        <div class="flexslider carousel">
                            <ul class="slides">';
    $images = explode(',', $attr['include']);
    foreach ($images as $id){
        $attachment = get_post($id);
    $output .= '
                                <li class="carousel-item fromblog-post portfolio-square">
                                <a href="'.wp_get_attachment_url( $id ).'" title="'.$attachment->post_excerpt.'">
                                    '.wp_get_attachment_image( $id, "square").'
                                </a>
                                </li>  ';
    }
    $output .= '
                            </ul>
                        </div>
                        </div>
                    </div>
                </section>  ';
    
    //$output = print_r($images);
    return $output;
    }
Viewing 7 replies - 1 through 7 (of 7 total)