wplearner
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Best way to prevent oversized images in sidebar breaking layouthey threesongbirds, yeah that might just do it. good thinking.
Forum: Installing WordPress
In reply to: Fatal Error after 3.3 updateawesome deal, so got it working though unfortunately not sure which step did it. first I tried reinstalling update.php which is where the update data function is defined, and that got access to the admin page up, but it looked like someone had gone in with a weedwhacker and just destroyed it. what I did that fixed it I think, was when doing a manual install, deleting both the wp-admin, and wp-includes folders.(not just overriding them, with new files, as I had previously) and now it’s back up.
Forum: Installing WordPress
In reply to: Fatal Error after 3.3 updatehey guys, so I’m having same problem. Just updated to 3.3, and it started showing the maintenence file.. I changed the name of plugins and the current theme(a sandbox child theme),-deleted the maintenance file, no luck. then I reinstalled all the content except that in wp-content. and my site is back up. but I still can’t access the dashboard. Whenever I try I get:
Fatal error: Call to undefined function wp_get_update_data() in /…/ wp-admin/menu.php on line 34
do you think just deleting this function call might solve it, or could that mess things up further? any other suggestions appretiated.
Forum: Fixing WordPress
In reply to: yikes, updated to wp 3.3 and site crasheshed. help?thanks, will give that a shot.
phew thank god, anybody see it? there are extra spaces in the quary parameters..thought I was going crazy..
but how could I add, if the post id is 47 is on the homepage? something like:
if (***post_id(’47’)*** == is_home())
{code..}
the what to put for the post id part is what I’m wondering about.
thanks guys.
Forum: Fixing WordPress
In reply to: how to write conditional statement for logged in adminhmm thanks, nice work-around.
Forum: Fixing WordPress
In reply to: annoying flash before jquery loads- pls helphoping someone out there knows how to fix this.
Forum: Themes and Templates
In reply to: are some html tags not allowed in posts?thanks.
Forum: Fixing WordPress
In reply to: annoying flash before jquery loads- pls helpalso the p color styling is done via jquery..
Forum: Fixing WordPress
In reply to: annoying flash before jquery loads- pls helpsure, keep in mind it’s basically being used as a test site:
https://www.spanishtranslator.me/
I have a small script called jtruncate that cuts the text and puts a “read more” link..you can see when you load the page it starts with the whole text and then jumps to the trunkated version. same thing happens with any other jquery script.. also here’s the code in functions php:
<?php function my_init() { if (!is_admin()) { wp_enqueue_script('jquery'); wp_enqueue_script("easeit",get_bloginfo('stylesheet_directory')."/easen.js", array('jquery')); wp_enqueue_script('newscript', 'https://kwicks.googlecode.com/svn/branches/v1.5.1/Kwicks/jquery.kwicks-1.5.1.pack.js'); } } add_action('init', 'my_init'); ?> <?php function quick3() { wp_enqueue_script("trial",get_bloginfo('stylesheet_directory')."/trial.js", array('jquery','newscript','easeit')); wp_enqueue_script("more",get_bloginfo('stylesheet_directory')."/moreit.js", array('jquery',)); wp_enqueue_script("trunker",get_bloginfo('stylesheet_directory')."/trunkit.js", array('jquery','more')); } add_action('init','quick3'); ?>
Forum: Themes and Templates
In reply to: multiple loops questionhey bagel, thanks man appreciate it.
Forum: Themes and Templates
In reply to: multiple loops questionyeah I saw that part.. I guess the main reason I was asking is because I read something about having multiple queries can be heavy on the server, so I was wondering if there were a better way of calling two loops..
I understand there are a couple other methods, (query_posts was one maybe), but I read that it has some downsides, so I just wanted to see if calling two loops seperately was ok, or if one should be nested, or some such.
Forum: Themes and Templates
In reply to: multiple loops questionhey thanks for the reply, so you’re suggesting using
$myPosts = $myPosts->query( 'posts_per_page=1&cat=3' );
instead of the second while loop?