hancoha
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site is gone, pages gone, can’t login (no admin) but all on serverYou might want to check again, I tried going to https://meandthecat.com/wp-admin and it can’t find the wp-login.php file. You might want to make sure it is actually on the server and not just your locahost (computer)
Forum: Requests and Feedback
In reply to: WordPress Codex Down?I figured that it doesn’t go down to often but that doesn’t make it any less annoying when it actually does.
Thanks for the tip about page caching, that will probably come in handy!
Forum: Requests and Feedback
In reply to: WordPress Codex Down?I’ve found a couple of good cheat sheets that you can view > here.
Forum: Requests and Feedback
In reply to: WordPress Codex Down?If it is updated often, there should definately at least be a themed 403 message error. It does get a little annoying when seeing the standard 403 error message.
Maybe I should make a template tag cheat sheet.
Forum: Requests and Feedback
In reply to: WordPress Codex Down?I understand this which is why I think it would be a difficult task. Maybe having like a template tag reference list would be useful. Just the template tag and a easy example of how to use the tag.
Forum: Requests and Feedback
In reply to: WordPress Codex Down?It’s back down again. I realize having an offline version would require more work seeing how the codex changes as WordPress does. I think it would be a good idea though to have for developers.
Forum: Requests and Feedback
In reply to: WordPress Codex Down?It came back up. Hopefully, it will stay up as I was in the middle of a project!
On a side note, is there an offline version of the codex? I think it would be a good idea to have in case the online version ever goes down.
Forum: Requests and Feedback
In reply to: WordPress Codex Down?I realize this post might not be in the “proper” category so please feel free to move it. Thanks!
Forum: Fixing WordPress
In reply to: get_posts and wp_queryThat makes a lot more sense. I understand that it has to obviously query each post, if there are any, in order for it to return any data. I really appreciate your help.
Forum: Fixing WordPress
In reply to: get_posts and wp_queryI didn’t realize you had to iterate using the foreach loop. If you simply do <?php query_posts(); ?> should you not get all the post data?
Forum: Fixing WordPress
In reply to: get_posts and wp_queryI feel like a total idiot. I figured out how to do the query_posts function. Here is my code:
<?php $category = get_posts('numberposts=5&category=4'); foreach($category as $post): ?> <ul> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> </ul> <?php endforeach; ?>
Forum: Fixing WordPress
In reply to: Custom jQuery ScriptI need help getting my jQuery script to work in WP. The script works fine outside of WP and I am not really sure why this is so.
I’ve created a script that randomly changes backgrounds based on an array. Here is the code for the script:
<script type="text/javascript"> $(document).ready(function() { var randomImages = ['bg1','bg2','bg3','bg4','bg5']; var rndNum = Math.floor(Math.random() * randomImages.length); $("#rotate").css({ background: "url(assets/bg/" + randomImages[rndNum] + ".png) no-repeat top center" }); }); </script>
I know that it’s not convention to use the script tags in WP so instead, I’ve used the wp_enqueue_script to call my custom script. I’ve also changes out $() for jQuery() because I know that $() is default for the scriptalicious library. However, I still can’t get the script to work in WP. I’ve tried calling a simplified script to see if the location of my script worked. I used the following code
window.onload = function(){ alert("welcome"); }
This code worked fine. Can someone PLEASE help me? Much appreciated!
Forum: Fixing WordPress
In reply to: Custom jQuery Script