awssoft profile

Home Forums awssoft

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: Empty post page

    I found this is very inflexible and actually its not possible to get theme to look as in demo.


    I found one plugin with excellent manual linking.


    Also I changed part of single.php. Is there possibility to change single.php troughs child theme in order to stay compatible with further updates and how?


    This part was changed:

    <div>$relations = CustomRelatedPosts::get()->relations_to( get_the_ID() );</div>
    <div>$args = array(</div>
    <div>    ‘post__in’ => array_keys($relations),</div>
    <div>    ‘posts_per_page’ => 6,</div>
    <div>    ‘tax_query’ => array(</div>
    <div>        array(</div>
    <div>                ‘taxonomy’ => ‘post_format’,</div>
    <div>                ‘field’ => ‘slug’,</div>
    <div>                ‘terms’ => array( ‘post-format-quote’, ‘post-format-link’ ),</div>
    <div>                ‘operator’ => ‘NOT IN'</div>
    <div>            )</div>
    <div>    ),</div>
    <div>    ‘orderby’ => ‘rand'</div>
    <div>$query = new WP_Query( $args );</div>
    <div>/*if( $query->post_count < 1 ) :</div>
    <div>    $args = array(</div>
    <div>        ‘post__not_in’ => array( get_the_ID() ),</div>
    <div>        ‘posts_per_page’ => 6,</div>
    <div>        ‘ignore_sticky_posts’ => 1,</div>
    <div>        ‘orderby’ => ‘rand'</div>
    <div>    );</div>
    <div>    $query = new WP_Query( $args );</div>

    in reply to: Related posts

    This plugin uses third party service. It’s not acceptable solution.


    We need something simple, but it’s very important to keep theme look.


    Is there are any way to keep look of the theme and to get simple functionality e.g.: two additional field on the “Edit blog post” page.

    1. Related posts title
    2. Coma separated ID of related posts

    This will be the perfect improvement for this theme



    in reply to: Related posts
Viewing 3 posts - 1 through 3 (of 3 total)