jakep_sf
Forum Replies Created
-
Forum: Themes and Templates
In reply to: I want create comment template<?php get_header(); ?> <?php $comments = get_comments('post_id=2'); foreach($comments as $comm) : echo($comm->comment_author); endforeach; ?> <?php get_footer(); ?>
Read the original link. In your code, you are getting the comment & author of post_id 2, which may not exist, or may not have comments.
Try replacing the above with the following:
<?php get_header(); ?> <?php $args = array( 'status' => 'approve', 'number' => '5', ); $comments = get_comments($args); foreach($comments as $comm) : echo('<i>'.$comm->comment_author . '</i><br />' . $comm->comment_content .'<br/>'); endforeach; ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: Add 'Categories' to Twenty Ten HeaderI’m assuming you’re referring to the Twenty Ten navigation menu?
Just make a custom link in the nav menu.
Here’s a how to link
[Link moderated. Please refer to The Codex wherever possible]
edited:This should be much more helpful:
https://codex.www.ads-software.com/Navigation_MenusForum: Themes and Templates
In reply to: I want create comment templateI did upload to root and not show up i think need add some code to functions.php or loop.php
Ok, so you got to step 5. Have you created a new page?
Does the new template show up as a page option?
ImageHave you selected this page template from the dropdown and published the page? If so, what is the url to the page you have published using the new page template?
Forum: Themes and Templates
In reply to: I want create comment templateYou created a Page Template with the above code, which means you got to about 3 or 4 of my instructions. Now do 5-9.
Forum: Themes and Templates
In reply to: Remove post titleAlternatively you could use a theme that supports nav_menu
https://codex.www.ads-software.com/Function_Reference/register_nav_menu
You can then create your pages and name them whatever you wish to display on the page and in the navigation label title it what you wish it to display in the navigation.Forum: Themes and Templates
In reply to: I want create comment template/wp-content/themes/theme_folder/recent-comments-template.php
Forum: Themes and Templates
In reply to: I want create comment templateThen
1. read the above link
2. create a new Page Template<?php /** * Template Name: One column Comments Page, no sidebar * * A custom page template without sidebar. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the edit page screen. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */
3. Take what you’ve learned from the above link and add it to the new page template
4. upload via ftp, it should show up when you 5. make a new page and choose the new Page Template
6. Publish the page7. view the page
8. Do whatever you do in your site to put a link to this new page in your navigation (some just show up, some use the new nav_menu, etc.)
9. Happy bloggingForum: Themes and Templates
In reply to: I want create comment templateShahram,
Have you read this?https://codex.www.ads-software.com/Function_Reference/get_comments
Forum: Fixing WordPress
In reply to: Another Comments Problem, mabye a new WP 3.0 bug?You said:
I have scaled back plugins even more this time, now I’m using the latest version of:
Akismet
Efficient Related Posts
Fast Secure Contact Form
FD Feedburner Plugin
WordPress.com Stats
WPtouch
(all say they’re compatible up to 3.0.1)
And my theme = Staypressed 1.4
URL= https://kjvonlydebate.comthe other person with the same issue said:
So I just reactivated only feedburner.
Could just be a coincidence, but after reading both threads, I don’t think either gave it the proper time to investigate and rule out this plugin as the offender.
Forum: Fixing WordPress
In reply to: Moving image on page<img src=”https://edsstudios.com/wp-content/uploads/2010/11/office.jpg” alt=”” title=”office” class=”alignright size-full wp-image-203″ height=”213″ width=”213″ style=”padding-right:30px”>
Forum: Fixing WordPress
In reply to: Image & Menu different in ie and FFThe ONLY drop-down is under the About menu.
My question was, does the drop down work for you in IE in any other page? If it does I’d start blaming the z-index, if it doesn’t I’d start blaming something you did to screw it up and take a time out.
Forum: Fixing WordPress
In reply to: Image & Menu different in ie and FFAlexander,
For your drop down issue: does it happen on every page or just the home page with the movie? I’m thinking it could be a z-index IE bug. Maybe.And for your image, try messing around with the formatting..
First, i’d try removing the text-align styling from the first paragraph. Then give your img a style=”width:200px; height:300px” . Try placing it before the first paragraph tag.. The image has width=”350″ height=”550″, try removing or fixing those attributes to be correct to the image size.
Just keep messing with it and checking the display in IE until you pinpoint it. Wish I could help more, IE is a pain.Forum: Fixing WordPress
In reply to: Block IP Adressessorry, missed this:
I cant seem to access my htaccess file to add it there.
This might work for you if you can’t open your htaccess (but it should open in text edit or similar)
https://www.ads-software.com/extend/plugins/vsf-simple-block/
Forum: Fixing WordPress
In reply to: Block IP AdressesForum: Fixing WordPress
In reply to: Blog Page Content "invisible" in IELooks like your frmFeedback form ouputs:
<script language="JavaScript"> <!-- function validateForm() { if(document.frmFeedback.name.value == 'Name') { alert("Name cannot be left blank"); document.frmFeedback.name.focus(); return false; } ... } </script>
But never ends the comment, therefore all content following it is commented out in older (IE) browsers.
Try removing the frmFeedback plugin and your content should be back.
Here’s a link
https://www.javascripter.net/faq/hidingjs.htm