Forum Replies Created

Viewing 15 replies - 1 through 15 (of 73 total)
  • Thread Starter Mark Kehn

    (@mak)

    Nevermind stvwlf,

    I got it worked out thank you very much indeed!

    I got it to work using:

    <?php $more = false; ?> before the <?php the_content() ?> line
    and
    <?php endwhile; $more = true; ?> at the end of the loop

    and I went ahead and removed the code I saw from a previous post:

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

    I am indeed gratful for your help. It has been bugging me for a long time now not being able to get the <!-- more --> link to work.

    Getting it to work finally will help me a bit with the duplicate content issue we face.

    Thanks again.

    Thread Starter Mark Kehn

    (@mak)

    Hey stvwlf,

    Thank you for replying and showing the code to use but your code differs from the code shown in the Codex template I am using, therefore I don’t know how to combine yours with it.

    Here is the top section of code I am using. Just the top portion of it that I think you needed to reference if you wish to help me further.

    <?php
    
    /*
    Template Name: PageOfPosts
    */
    
    get_header(); ?>
    
      <div id="container">
        <div id="content">
          <?php
          // Page id 53 will get category ID 3 posts, page 55 will get category 10 posts and so on.
          if (is_page('53') ) {
          $cat = array(3,45,46,47,48,49,50,51);
          } elseif ( is_page('55') ) {
          $cat = array(10,40,15,41,42);
          } elseif ( is_page('57') ) {
          $cat = array(43,44);
          } else {
          $cat = '';
          }
          $showposts = -1; // -1 Shows all posts.
          $do_not_show_stickies = 1; // 0 to Show stickies.
          $args=array(
             'category__in' => $cat,
             'showposts' => $showposts,
             'caller_get_posts' => $do_not_show_stickies
             );
          $my_query = new WP_Query($args);
          global $more;
          // Set $more to 0 in order to only get the first part of the post.
          $more = 1;
          ?>
    
          <?php if( $my_query->have_posts() ) : ?>
            <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
              <?php
              //necessary to show the tags
              global $wp_query;
              $wp_query->in_the_loop = true;
              ?>
              <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <!-- Display the post title in an h2 header. -->
                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
                <div class="entry-meta">
                <!-- I REMOVED THIS FOR BREVITY IN SHOWING YOU THE CODE -->
                </div><!-- .entry-meta -->
    
                <div class="entry-content">
                  <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'My-Framework' )  ); ?>
                  <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'My-Framework' ) . '&after=</div>') ?>
                </div><!-- .entry-content -->

    NOTES: I already had the global $more added since I saw that in another post somewhere but they didn’t show how to use it, so for me – adding it did nothing.

    You show additional code on how to actually use it but I don’t know how to integrate it into my current code. Could you help me some more please?

    The code I added and saw from another post somewhere is:

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

    You should be able to find it in the first code block I showed you.

    Much aprpeciated stvwlf.

    Thank you.

    I just downloaded and installed this today and got the very same error upon activation.

    Thread Starter Mark Kehn

    (@mak)

    I downloaded and installed the 3.0.4 version you gave, so thanks.

    Thread Starter Mark Kehn

    (@mak)

    Hi schoe,

    I am not sure what you are asking of me when you said, “Would you post again please if you get a clue!”

    Anyways, the only other problem I have encountered with the Robots Meta plugin is that it prevents me from using Windows Live Writer; it prevents posts being uploaded to my blog when the plugin is activated. This is the error message I get when it’s installed:

    https://www.flickr.com/photos/16731818@N00/3964174354/sizes/o/

    Another plugin that causes this same problem for me is the Bad Behavior plugin. So anytime I want to use Windows Live Writer I have to disable both of those plugins first, make my posts, then reactivate them.

    I have since stopped using Bad Behavior because it was causing problems in my sidebar when I was trying to use another addon. Bad Behavior behaves badly with several addons, so instead of using Askimet + Bad Behavior I am using Askimet + reCAPCHA instead.

    Oh well, sorry I got off-topic.

    Sorry to bring up an old post but is this working as intended?

    I too came here to mention that I set some links as private so that when I am logged in as the administrator I expected to see them in the sidebar just for me to see but I don’t. I thought that was how it was supposed to work, at least that is what makes sense to me.

    Has anyone heard from the WordPress Guru’s and Dev’s about this not working as we had expected it to?

    Thread Starter Mark Kehn

    (@mak)

    Sorry, I meant to say I will still use it for the tabbed widget part of things I just cant use it for my other widgets right now.

    Any chance you can answer my 2nd post here, the one after you first replied to me.

    I would love to be able to have tabbed Recent Posts and tabbed Recent Comments, I just can figure out the php code or short code needed for it.

    Thread Starter Mark Kehn

    (@mak)

    Hey godfreykfc,

    After playing with it some more I find it doesn’t work in regards to your PAGE tab either. That is to say —

    If I tell the widget to NOT show on any PAGES it works.

    But If I tell the widget to show only on PAGE A (from your PAGE tab in settings) it shows on PAGE A but also B C AND D too. So it’s behaving like ALL or nothing, even though it only shows a check-mark on Page A.

    I don’t know if you saw that when you were fixing the TAGS part of it that I mentioned in my first post.

    Anyhow wanted you to know the update you said you pushed through WordPress Extends/Updater never came through yet, I still don’t see a notice to update the plugin.

    Do you have a secondary link we can download directly from you?

    EDIT: Here’s another thing you may find interesting.

    You mention in you notes/faq that people may still need to use Justin’s Widget Logic if they need to hide other plugin widgets. So you are aware that people do use your Section Widget and Widget Logic together.

    Did you know that that don’t play nicely (sometimes?) Here is an example:

    Lets say I have a widget named WIDGET COOLNESS and in the settings area for Section Widget I have everything unchecked. Meaning I told Section Widget plugin not to show WIDGET COOLNESS anywhere in my website. Well, that works. but…

    Now lets say I tell Widget Logic to show WIDGET COOLNESS on three different pages, well it doesn’t work because Section Widget superceeds it and since Section Widget has everything turned off Widget Logic won’t work for it. However…

    If I told Section Widget to show WIDGET COOLNESS on Special Page A and Special Page B – it works but if I then tell Widget Logic to not show it on Special Page B then it doesn’t.

    What I am trying to explain is if Section Widget tells the widget not to show up it wont, regardless of what Widget Logic says but if Section Widget says to show something, after it’s allowed to show Widget Logic can turn around and turn it off.

    Do you get what I mean?

    So anyways – I understand what you intended for Section Widget to do and it sounds great. You were trying to make it easier for us to tell where a widget will and will not show up without having to find the correct php logic to make Widget Logic work. That said, with the quirky behavior and much time spent trying to get Section Widget to work as it says it should, even though I have to find the correct php logic to make Widget Logic work, right now it’s still a lot easier and more importantly — faster to use Widget Logic right now.

    If you get these kinks worked out, I look forward to using Section Widget but for now I will deactivate it. I will check back every now and again for updates to your plugin. I wish you the best.

    MAK

    Thread Starter Mark Kehn

    (@mak)

    Hey godfreykfc,

    Thanks for your reply. May I ask you one more question please?

    We have the widgets Recent Posts and Recent comments but instead of using those widgets how do I use your section-tab widget to do the same?

    I want a Recent Posts tab and a Recent Comments tab with each tab showing the proper stuff. What short codes do I use? I even installed Justin Tadlocks plugin “Template Tag ShortCodes” but I don’t find anything there I can use (I don’t think).

    I see people using a tabbed widget for Recent Comments and Posts all the time but I don’t know how to do it without using the individual default built in widgets by WordPress.

    Much appreciated thanks.

    EDIT: Just a feature request – When we click a tab within your section-tab widget whenever we go to another page or refresh the page it always goes back to the first tab, can you make it persistent? Make it so that if I click on the Archives tab and click an archive link, after I get taken to the archive page the tabbed widget will still show the Archive tab instead of it going back to the first tab again?

    Thread Starter Mark Kehn

    (@mak)

    For those who may have this issue also:

    If you try to do searches using your default search box and doing so redirects to your homepage with no search being performed

    or

    When you click on an archive link and it redirects to your homepage without showing the archive content

    If you happen to have the Robots Meta plugin by Yoast, this is the culprit causing the problem.

    Here is the section of the Robots Meta plugin causing the problem: Uncheck the three BOLD settings to fix this.

    Disable the author archives

    If you’re running a one author blog, the author archive will always look exactly the same as your homepage. And even though you may not link to it, others might, to do you harm. Disabling them here will make sure any link to those archives will be 301 redirected to the blog homepage.

    Disable the date-based archives

    For the date based archives, the same applies: they probably look a lot like your homepage, and could thus be seen as duplicate content.

    Redirect search results pages when referrer is external

    Redirect people coming to a search page on your site from elsewhere to your homepage, prevents people from linking to search results on your site.

    NOTE: I have no idea why these three settings would cause the two problems I mentioned. The description for the settings mentions it’s to block people outside of your website from linking to these search pages – I understand that part but why it actually prevents you from doing searches within the site itself or clicking on archive links from within the site itself I have no clue.

    But anyhow I disabled these three settings and I’m back to normal with links and searches working.

    Thread Starter Mark Kehn

    (@mak)

    Nah,

    I do have an archives.php and I have done nothing to it in a long while now so as far as I am concerned it should work like normal.

    I have the standard template files, index.php, page.php archives.php and so forth.

    As you may have seen on the webpage I am using a tabbed widget box but this redirect problem occurred even before I ever installed it.

    As to your last question, what sort of plugins would even interfere with the link process?

    Oh also. I need to point out that doing searches from the default search box also doesn’t work. When you try to search for something on the site it also redirects to the homepage as well.

    EDIT: Apparently it is a plugin interfering.

    @askapache,

    I just wrote a post in a different thread about the CSS code not saving changes and I have an issue with the Googles Best Guess also, it never shows anything for me. Just letting you know.

    EDIT: I just found out the HTML section of settings page also doesn’t save changes, I just tried. Not sure about the Javascript section, I don’t mess with JS.

    Also at the very top, just checked again – the 404 section doesn’t save changes when choosing which 404 page to use.

    Sumary:

    • CSS code area of settings page doesn’t save changes made to it
    • Googles Best Guess is always 0, show’s nothing
    • HTML section doesn’t save changes
    • 404 section at top doesn’t save changes when picking which 404 page to use

    I will disable this for now and reinstall it later. I will check back here in hopes you may be fixing these things.

    @askapache,

    The CSS options are not saving for me. I downloaded the most recent from here just today as matter of fact using this plugin for the first time. So I thought maybe I could just add the CSS I wanted to change into my own stylesheet but that doesn’t work – your plugin doesn’t recognize my CSS changes for the styles it uses.

    I have tried making a couple changes in the plugin settings area when I noticed it wasn’t saving, lol I even tried deleting ALL the css on settings page and saving it and as soon as I refresh page it’s all there again.

    Thread Starter Mark Kehn

    (@mak)

    Yeah Donncha I have always seen that but my understanding was that every time a page is served from cache that we are supposed to see the message
    <!– Cached page served by WP-Super-Cache –>

    Am I mistaken? Are many of us mistaken? Many of us are expecting to see that message and several actually do get it but many of us don’t.

    Without that message we ‘think’ it is not serving from cache but instead is creating the page dynamically every time it is loaded/refreshed.

    EDIT: And another thing, shouldn’t the pages load almost instantly, because they aren’t.

    EDIT SUMMARY: So if seeing the same time stamp over and over means we are in fact getting served a cached page then all is well and I guess I never had a problem after all. I have always seen the same time stamp.

    It’s just that after reading so many thread posts about this issue, so many of us are looking for that message <!– Cached page served by WP-Super-Cache –> as a stamp of approval as it were. PROOF that it is working.

    I just thought I was having problems because I never saw that message and my pages never loaded instantly.

    If everything is working as intended maybe you should write a sticky post saying that the message <!– Cached page served by WP-Super-Cache –> no longer exists and that as long as we see the same time stamp over and over everything is working properly.

    Wow! I can’t believe I was so stressed out about this and spent so many hours trying to resolve it when it was never “broken” to begin with. I’m just glad it’s all over now.

    THANK YOU! =)

    Thread Starter Mark Kehn

    (@mak)

    *sniff

    I really hoped this dev version would have worked but it appears to have the same results.

    I have it on HALF ON,
    I have “Don’t cache pages for logged in users.” as [unchecked]
    I have support for Bad Behavior [enabled]
    I have everything else as default

    And whether I am logged in or not I still do not see the pages being served from cache. I never see the message:

    <!– Cached page served by WP-Super-Cache –>

    Will you please look for yourself at my site Donncha? I’d really appreciate it. https://makaz.kicks-ass.net/blog/

    Thanks

    EDIT: Hold on I forgot to redo the .htaccess
    EDIT AGAIN: Okay the .htaccess were updated but still same problem, not being served by cache.

    Please look at my site, it’s all I can hope for right now. Perhaps you will discover something by looking.

Viewing 15 replies - 1 through 15 (of 73 total)