Forum Replies Created

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter nickchia

    (@nickchia)

    Thank you alchymyth,

    First, let me say that I really appreciate the time you are giving me to help solve my issue. I do not take your assistance lightly.

    I replaced the array with your code and you can see the results at the same link. Unfortunately the site is in staging, so I need to keep the password on the folder. Its only a simple permission to view the contents.
    https://foodtruckfeeds.com/foodtrucks/browse-food-trucks/

    Could it be the second part of the code that’s inhibiting it?

    // Our new query for the Recent Posts section.
    $recent = new WP_Query( $recent_args );

    // The first Recent post is displayed normally
    if ( $recent->have_posts() ) : $recent->the_post();

    // Set $more to 0 in order to only get the first part of the post.
    global $more;
    $more = 0;

    get_template_part( ‘content’, get_post_format() );

    echo ‘<ol class=”other-recent-posts”>’;

    endif;

    // For all other recent posts, just display the title and comment status.
    while ( $recent->have_posts() ) : $recent->the_post(); ?>

    <li class=”entry-title”>
    ” rel=”bookmark”><?php the_title(); ?>
    <span class=”comments-link”>
    <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, ‘twentyeleven’ ) . ‘</span>’, __( ‘<b>1</b> Reply’, ‘twentyeleven’ ), __( ‘<b>%</b> Replies’, ‘twentyeleven’ ) ); ?>
    </span>

    <?php
    endwhile;

    // If we had some posts, close the

      if ( $recent->post_count > 0 )
      echo ‘

    ‘;
    ?>

    You can download the code here:
    https://adobe.ly/1L1CYle

    Thread Starter nickchia

    (@nickchia)

    @alchymyth

    Thank you for your response. Unfortunately, it did not work. I don’t understand why WordPress made this so difficult. There should be an option in the GUI for this. This is now the third day I am working on this and I am falling behind on this job and my other clients. Starting to get really stressed out. At this point, if I can’t resolve this, I’m going to trash the WordPress application and manually build a new site. As I said, this should be as simple as changing an option. This is the absolute last thing I need to do to finish this site, and it seems that I’m going to have to start all over with WordPress.

    If you have any other suggestions, I welcome them.

    Thread Starter nickchia

    (@nickchia)

    I’m sorry. I simply meant that there is no specific code where that this happens. I happens on two different sites both hosted on Network Solutions. I will gladly show you a screen shot so you can see what happens. Please see link from BergenCountyDanceClasses.com website:

    https://adobe.ly/1HLo92o

    Thank you.

    Thread Starter nickchia

    (@nickchia)

    You still do not have a grasp of the issue. I don’t mean to sound rude, but this is a veery frustrating problem. I cannot send you the code because the code is fine and this happens no matter what page i put it in, every time.

    According to this link:
    https://www.ads-software.com/support/topic/please-give-us-the-option-to-turn-of-smart-quotes?replies=15

    “Smart quotes are performed by the wptexturize function.” It further gives you a function to add. But the post is four years old and I am afraid the info might be outdated. The post also mentions a couple plug-ins you can use to disable the auto conversion to smart quotes, but one has not been updated for 7 years, and the other one for 10 years.

    This is a big problem for any programmer using WordPress. Someone out there must have the answer.

    Thread Starter nickchia

    (@nickchia)

    @kmessinger
    Because I am coding in HTML within the text area. Smart quotes do not work inside code. They blow the page apart. This is very problematic since every HTML attribute requires quotes.

Viewing 5 replies - 31 through 35 (of 35 total)