Sunita Kumari

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Related Posts #34882

    Sunita Kumari
    Participant

    Hello Mr. Satish, I am trying to add related posts without plugin as WPengine doesn’t allow. I am including following piece of codes

    <?php $orig_post = $post;
    global $post;
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
    $tag_ids = array();
    foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    $args=array(
    'tag__in' => $tag_ids,
    'post__not_in' => array($post->ID),
    'posts_per_page'=>2, // Number of related posts that will be shown.
    'caller_get_posts'=>1
    );
    $my_query = new wp_query( $args );
    if( $my_query->have_posts() ) {
    echo '<div id="relatedposts"><h3>Related Posts</h3><ul>';
    while( $my_query->have_posts() ) {
    $my_query->the_post(); ?>
    <li><div class="relatedthumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(150,100)); ?></a></div>
    <div class="relatedcontent">
    <h3><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <?php the_time('M j, Y') ?>
    </div>
    </li>
    <? }
    echo '</ul></div>';
    }
    }
    $post = $orig_post;
    wp_reset_query(); ?>

    But the related posts appear vertically aligned and awkward. How to keep them horizontal. thanks in advance.

    • This reply was modified 3 years, 1 month ago by  Sunita Kumari.
    in reply to: To increase content width #34554

    Sunita Kumari
    Participant

    Thanks a lot Mr. Satish, solved the issue. One more thing I request to be told. I use nav menu above logo. Is a way to make it sticky?

    I can see the sticky option is applicable for only nav menu below logo.


    Sunita Kumari
    Participant

    thanks for the response. Anyway, I have added a plugin “Social Share Buttons by Supsystic”.
    But, one thing where I have stuck is –
    I want to remove links from dates on Home page (For example “20 hours ago” written in link but I want “20 hours ago” without link.) for every post. Kindly help to come me out. I will be ever obliged!


    Sunita Kumari
    Participant

    Please sir, Where are u


    Sunita Kumari
    Participant

    thanks.

    in reply to: Menu hangs down as a list while loading site #31532

    Sunita Kumari
    Participant

    Please Reply Satish.

    in reply to: Save option missing #31399

    Sunita Kumari
    Participant

    The image is captured after completion of loading of the page. I have checked after disabling all the plugins and afterward removing all the plugins. But save button still not appeared. One more thing is all the options (Swift option, Design Option, color scheme, Import/Export, Useful Info) are opening in single page whereas the should be opened in different pages. I hope you could understand the issue. You can see a tiny scrollbar in the right side because of all the options load in only one page.

    scrollbar

    in reply to: Related Posts #30977

    Sunita Kumari
    Participant

    yeah, Thank you so much mr. satish.

    in reply to: Distorted codes on header #30895

    Sunita Kumari
    Participant

    thank u so much for your quick response.

    Admin,
    Howtoconnect – Windows 8, Apps, Android, Internet, Computer tips

    in reply to: Distorted codes on header #30891

    Sunita Kumari
    Participant

    No, there is no problem. I became concerned after I look into this.

    in reply to: Continue Reading link #30669

    Sunita Kumari
    Participant

    thank youu satish.

    in reply to: Structured Data Test not working #30634

    Sunita Kumari
    Participant

    Sorry Mr. Satish, After purging cache everything is OK. Thank you so much
    for your response. I was greatly concerned about the particular issue.
    Thank u.

    Admin,
    Howtoconnect – Windows 8, Apps, Android, Internet, Computer tips

    in reply to: Structured Data Test not working #30632

    Sunita Kumari
    Participant

    But after I have added publish date and author it is still showing the
    error like

    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.

    Admin,
    Howtoconnect – Windows 8, Apps, Android, Internet, Computer tips

    in reply to: Structured Data Test not working #30620

    Sunita Kumari
    Participant

    Hello Satish, please answer.

    in reply to: Structured Data Test not working #30619

    Sunita Kumari
    Participant

    Sorry for the previous post published in html.

    My site Howtoconnect is not showing structured data test for homepage and archive pages. For single page, all is OK. What is the solution. I am using the latest version of swift.

Viewing 15 posts - 1 through 15 (of 20 total)