mjkane
Forum Replies Created
-
Forum: Plugins
In reply to: [Fast Secure Contact Form] Unwanted insertedMike,
Please ignore my previous post about the membership-form page. I just realized that I must make the same style change for each instance of the form, i.e. the edit is not a global one. In hindsight this makes perfect sense.Thanks again for all your help.
MichaelForum: Plugins
In reply to: [Fast Secure Contact Form] Unwanted insertedMike,
Thanks for the reply. I did see that option in the Styles tab, but it did not seem to take effect. I went back set the Clear DIV to none and all is good with the Contacts page using this form.
But…
I am using the form on this page as well, https://www.caluwild.org/membership-form and for some reason the Clear DIV setting of none is not working, it persists as Clear DIV: both. Any ideas?Many thanks,
MichaelForum: Plugins
In reply to: [Fast Secure Contact Form] Unwanted insertedThe link is to the contacts page for https://www.caluwild.org/contacts, the form should appear just below the Caluwild Advisory Board. Upon inspecting the page, I found the clear:both div style that is causing this unnecessary spacing.
Thank you.
MichaelForum: Fixing WordPress
In reply to: Archived posts don’t follow my CSSHey mjkane, in what file did you change the type? archives.php?
Matius,
I put it in my sidebar3.php file which is where my left side bar content is located. Hope this helps.Forum: Fixing WordPress
In reply to: Newsletter Post is taking the place of my home page content.Esmi,
Simplistik suggested this reset code after the loop and it worked.
<?php wp_reset_query(); ?>Thanks for your help as well.
Forum: Fixing WordPress
In reply to: I’m going blind tring to find the error…help pleaseThanks so much Simplistik, putting the reset code after “the loop” did the trick!
MichaelForum: Fixing WordPress
In reply to: Newsletter Post is taking the place of my home page content.Esmi,
Thanks for the link. I have read through everything and am still a bit confused. This reference seems to be addressing multiple loops for organizing/retrieving the content of posts. My issue is that the content of a static page is being overwritten by the content of a post. If I’m missing something perhaps you could direct me to a more specific reference.Thanks.
MichaelForum: Fixing WordPress
In reply to: I’m going blind tring to find the error…help pleaseGreat, thank you. I will try coding that way.
Now that the page is opening, the code seems to be faulty. My desire is to have in the sidebar3 of the home page (index.php) an excerpt of the current newsletter with the name as a link to its post page in its entirety. Now the link is gone and my home page maincontent is the current newsletter post, not the text that is written on the home page.
Here’s the code, a bit altered from before reflecting my attempts to accomplish the task above.
Thanks again for all your help.
<div id="sidebar3"> <div id="nav"> <ul> <?php wp_list_pages("title_li=&exclude=12,16,21,23,339"); ?> </ul> </div> <?php if ( is_single() ): ?> <h2>Past Newsletters</h2> <?php wp_get_archives('type=postbypost'); ?> <?php elseif ( is_page('home') ): ?> <h2>Latest Newsletter</h2> <?php query_posts('showposts=1'); ?> <?php if ( have_posts() ): ?> <?php while ( have_posts() ): the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>"<?php the_title(); ?></a></h2> <?php the_excerpt(); ?> </div> <?php endwhile; ?> <?php endif; ?> <?php elseif ( is_page('membership') ): ?> <h2>Membership Form</h2> <a href='https://www.mywebsite.com/wpcaluwild/?page_id=16'>Please take a minute to join us by filling out our membership form.</a> <?php endif; ?> </div>
Forum: Fixing WordPress
In reply to: I’m going blind tring to find the error…help pleaseSimplistik You Da Man! That worked. So I can learn from this, what do you mean by “wordpress” style?
Thanks again so much!
MichaelForum: Fixing WordPress
In reply to: I’m going blind tring to find the error…help pleaseStill a no go. Made the changes adding <?php endwhile; ?> and <?php endif; ?> statements, yielding the same parse error, unexpected $end;
<div id="sidebar3"> <div id="nav"> <ul> <?php wp_list_pages("title_li=&exclude=12,16,23,339");?> </ul> </div> <?php if (is_single()) { echo "<h2>Past Newsletters</h2>"; wp_get_archives('type=postbypost'); } elseif (is_page('home')) { echo "<h2>Latest Newsletter</h2>"; ?> <?php query_posts('showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a>"<?php the_title(); ?>"</a></h2> <p><?php the_time('F jS, Y') ?> </p> <?php the_excerpt(); ?> </div> <?php endwhile; ?> <?php endif; ?> } elseif (is_page('membership')) { echo "<h2>Membership Form</h2>"; echo "<a href='https://www.mywebsite.com/wpcaluwild/?page_id=16'>Please take a minute to join us by filling out our membership form.</a>"; ?> } </div>
Forum: Fixing WordPress
In reply to: I’m going blind tring to find the error…help pleaseOkay many thanks for the advice. But now I have spent an hour with this issue,Parse error: syntax error, unexpected $end in line 39 that is the closing div </div>.
Again here’s all the code:
<div id="sidebar3"> <div id="nav"> <ul> <?php wp_list_pages("title_li=&exclude=12,16,23,339");?> </ul> </div> <?php if (is_single()) { echo "<h2>Past Newsletters</h2>"; wp_get_archives('type=postbypost'); } elseif (is_page('home')) { echo "<h2>Latest Newsletter</h2>"; ?> <?php query_posts('showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a>"<?php the_title(); ?>"</a></h2> <p><?php the_time('F jS, Y') ?> </p> <?php the_excerpt(); ?> </div> <?php endwhile; ?> } elseif (is_page('membership')) { echo "<h2>Membership Form</h2>"; echo "<a href='https://www.michaeljkane.com/wpcaluwild/?page_id=16'>Please take a minute to join us by filling out our membership form.</a>"; } <?php endif; ?> </div>
I double checked for “empty” spaces but I can’t seem to shake the unexpected $end error.
Oh before I forget many thanks to simplistik for the very fast response earlier.
Forum: Fixing WordPress
In reply to: Archived posts don’t follow my CSSI figured it out. I had been using wp_get_archives(); or wp_get_archives(‘postbypost’); both listed the archives. But when I added ‘type=postbypost’ the urls worked properly.
Maybe this will help others.
Forum: Fixing WordPress
In reply to: Where to place <body> </body> tagsThanks Jessn.