beduicom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_post_custom_values problem – receives error on page?Awesome! That solved everything ??
Forum: Fixing WordPress
In reply to: get_post_custom_values problem – receives error on page?Thanks! It works for the single.php, but for the index.php I get this error:
PHP Warning: Invalid argument supplied for foreach() in wordpress\wp-content\themes\retromania\index.php on line 18 PHP Warning: Invalid argument supplied for foreach() in wordpress\wp-content\themes\retromania\index.php on line 18 PHP Warning: Invalid argument supplied for foreach() in wordpress\wp-content\themes\retromania\index.php on line 18
And for the archive.php I get this error:
PHP Warning: Invalid argument supplied for foreach() in wordpress\wp-content\themes\retromania\archive.php on line 44
Line 18 and Line 44 is this line in both those pages:
foreach ( $mykey_values as $key => $value ) {
Do you know why I get error like that?
(I use this line right after the title of a post in both the single.php, archive.php and index.php – your code works fine for the single.php, but not for the archive.php and the index.php.
Thanks a bunch if you can help me!
Should the font be set in the tags menu of the DFR plugin menu, or can I change it in the CSS that I have and just put in that fonts name, for example:
font: 14px/1.4 newfontname, Helvetica, sans-serif;Forum: Fixing WordPress
In reply to: Some parts of the of site loading twice?True!
So which one should I delete? Here is my header:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.png" type="image/x-icon" /> <?php wp_get_archives('type=monthly&format=link'); ?> <?php wp_head(); ?> <script type="text/javascript"> /* <![CDATA[ */ function inputcheck(obj,mode){ if(mode=="focus"){ obj.value='' } } startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } window.onload=startList; /* ]]> */ </script> <?php wp_head(); ?> </head> <body> <div class="wrap"> <div class="header"> <h1 class="logo"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> <div class="description"><?php bloginfo('description'); ?></div><br> <ul class="menu" id="nav"> <?php wp_list_pages('hide_empty=0&title_li='); ?> </ul> </div> <div class="content"> <div class="content_left"> <div class="content_right">
Thanks for helping me out!
Forum: Fixing WordPress
In reply to: Comments: date shows up as "%A %B %e%q, %Y at %I:%M %p"Hey I just found the solution to this one –?it’s plugin qTranslate that corrupts it:
https://www.qianqin.de/qtranslate/forum/viewtopic.php?p=5988#p6142
The fix is right there. Topic closed.
Forum: Fixing WordPress
In reply to: Comments: date shows up as "%A %B %e%q, %Y at %I:%M %p"In comments.php of the theme, this is the code:
<!-- You can start editing here. --> <div class="comments"> <?php if ($comments) : ?> <h1><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h1> <ol class="commentlist"> <?php wp_list_comments('type=all&avatar_size=50'); ?> </ol> <?php else : // this is displayed if there are no comments so far ?>
The referenced “wp_list_comments” function is written inside the comment-template.php which I mentioned above. So I guess I need to modify that one somehow?
Forum: Fixing WordPress
In reply to: Comments: date shows up as "%A %B %e%q, %Y at %I:%M %p"THanks for your replies. I’m looking in my comments.php though and can’t find any reference to the time or date! I use theme Retromania. Instead I can just find this reference in a “comment-template.php” file which is under wp-includes directory. I don’t get it… ?
Do you have any knowledge about this theme?