| User | Post |
|
10:17 pm 23 Apr 2007
| Tony Brooklyn
Guest
| | | |
|
| |
|
|
Below is my page.php code. Please show me where I need to copy and paste your punmail code, for I pasted it all over this page and still do not see it on my wordpress blog. The plugin is activated as well for everypage.
Please advise,
Tony
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
|
|
|
|
|
Depending upon where you want it to appear it neds to be within the 'loop' (not that a 'loop' is necessary on a page template but that's another matter). Your insertion point starts at the line:
<div class="post"…. etc
and ends at the </div> above the line:
<?php endwhile; endif; ?>
so if you want to put the sub form on EVERY page then somewhere in there you need to place the template tag:
<?php punmail_form(InputLength, StackBelow); ?>
replacing the two parameters with your requirements. You can see from your code where the 'title' is placed and the 'content'.
|
|
|
10:54 pm 23 Apr 2007
| Tony Brooklyn
Guest
| | | |
|
| |
|
|
Ok, I did what you instructed and I still do not get the punmail subscription on my pages. I don't understand why. I can't even get the regular tag for the punmail to work. I have triple check my install and all is good there.
Please advise,
Tony
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php punmail_form(30, false); ?>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
|
|
|
|
|
Off-hand I can think of no reason whatsoever. I've just checked and double-checked the code and it should be fine. I'm using it myself on my plugin pages and that is using the template tag just like this.
The only thing that comes to mind - and this is most unlikely - is that your page.php is not getting called for some reason and that 'pages' are getting displayed on another template. That IS unlikely though.
When you run a 'page' with the template tag embedded you can take a look at the generated source to see if anything is getting placed in the source. You can give me a link to one of your pages as well but I have to go now so wont be able to look at it immediately. But I am willing in the morning if you like.
|
|
|
11:42 pm 23 Apr 2007
| Tony Brooklyn
Guest
| | | |
|
| |
|
|
Yes that will not be a problem. http://anthony.limachips.com/wordpress/
I was able to get it to show up on a beta of mine but it doesn't notify me when someone post a comment. Is there any reason for that? Here is the beta address:
http://beta2.prolifix.net/wordpress/
|
|
|
|
|
The first link you gave me doesn't go to a 'page' and there are no 'pages' listed so I can not take a look at the source. The second link can not be found.
I think you might have the wrong plugin here. The purpose of this plugin is that it allows people to subscribe to be notified when you change the content of a 'page'. It has nothing to do with 'posts' and nothing to do with comments.
|
|