thathurtabit
Forum Replies Created
-
Forum: Plugins
In reply to: [Comments Like Dislike] Likes Stored in DB?Ah, it’s in commentmeta! Doy!
Forum: Plugins
In reply to: [Multiple Featured Images] Can’t get featured img URL or IDThank you! I knew it would be something simple I was overlooking. D’oh.
Forum: Fixing WordPress
In reply to: How to add an additional Required field to the comment form in 3.0?I’m looking for the same thing… it’s such a shame WordPress is now nearly at 3.2 and they’ve still got such terrible Comment form validation.
Forum: Themes and Templates
In reply to: How to add .JS files to Child Theme?Thanks esmi, that helped.
For anyone else following this, I was looking for the correct Child theme bloginfo references explained here:
Forum: Themes and Templates
In reply to: How to add .JS files to Child Theme?It seems the above suggestion doesn’t work, as using
<?php bloginfo(stylesheet_url); ?>gets the url of the actual stylesheet.For example using
<?php bloginfo(stylesheet_url); ?>would bring the following: http://www.mysite.com/wp-content/themes/mytheme/style.css– and not the desired Child Theme directory.
I’m looking for a way to reference files inside of the child theme, but using your last suggestion would bring this:
www.mysite.com/wp-content/themes/mytheme/style.css/js/myjavascript.jswhich obviously doesn’t work as required. Any suggestions?
Forum: Themes and Templates
In reply to: How to add .JS files to Child Theme?Hi esmi,
Thanks for your help.
Those links seem to be more concerned with standard Theme development, as opposed to Child Theme development.
How, for example, would you include a link to a .jpg or .gif? As the:
<img src="<?php bloginfo(template_url); ?>/images/myimage.jpg />– tag only references the Parent theme, so, does this mean that I will have to write a PHP function in my functions.php file for every single call to a file (img, js, css, etc.) that is local only to my child theme?
Forum: Hacks
In reply to: Comments ORDERBY = RAND?I found a way to do it by editing further sections of the SQL requests inside wp-includes/comment.php
and adding this in:
ORDER BY RAND()
– it worked for me, though make sure you back up your files if you’re going to do the same.
Forum: Themes and Templates
In reply to: ‘News’ page not displaying correct code/lookI figured out that it was because I had a file called home.php, which is a name that WordPress has reserved for the ‘home’ page. Or something.
Forum: Themes and Templates
In reply to: ‘News’ page not displaying correct code/lookI still have no idea what was causing this, but I’ve deleted all the files off the server, uploaded my header, footer and sidebar includes, and then re-uploaded the default index.php and the page.php templates…
This fixed the problem, despite not changing anything. Could have possibly been a strange WP bug?