mantis
Privileged
-
Joined
-
Last visited
Solutions
-
mantis's post in Anchor links to a another part of another page in Wordpress was marked as the answerThis should work :
<a href="index.php?page_id=10#class"> change '10' to the id of your about page.
-
mantis's post in A part static header was marked as the answerThis one should work for you. It specifically deals with navigation but should work with just about anything.
http://www.hongkiat.com/blog/css-sticky-position/
-
mantis's post in Problem with form submission on Firefox was marked as the answerWell, I found the problem. There was a cookie that was set on one of my browsers but not on the other. Thanks to everyone who looked.
-
mantis's post in Site won't load in Firefox was marked as the answerTurned out it was a cacheing problem. Fixed it by adding
<?php echo date('Y-m-d H:i:s'); ?> as a url parameter after the stylesheet. (tip from Jack)
-
mantis's post in Wrapping posts in tags correctly was marked as the answerI'm guessing it has something to do with this :
<li class="event-info"> <?php the_excerpt(); ?> </li> </ul> </li> <?php endwhile; ?> It looks like you have a stray closing li in there. If I were you I would check the source code in Firefox and see if there isn't anything in red. Or use a code editor or plugin or something. It can get a bit confusing when you are outputting html with php.
-
mantis's post in repeatable select boxes was marked as the answerIn case anyone is curious:
Turns out my javascript needed fixing. I was cloning the field and not incrementing it correctly. Also I had
$meta == $item->ID ? ' selected="selected"' :
instead of $row == $item->ID ? ' selected="selected"' :
-
mantis's post in why is this returning an array? was marked as the answerActually, it was because I used the same variable $meta further down in the code and defined it as an array
Thank you to whoever tried to help.
-
mantis's post in Associating a custom post type with a custom (user) taxonomy was marked as the answerGot it! I'll post it in case anyone else has the same type of question:
$pagename = get_the_title(); $user_query= new WP_User_Query( array( 'meta_key' => 'tm-name', 'meta_value' => $pagename ) ); // User Loop if ( ! empty( $user_query->results ) ) { foreach ( $user_query->results as $user ) { echo '<p>' . $user->display_name . '</p>'; } } else { echo 'No users found.'; } ?> I've actually decided to do it differently but happy to have solved this particular problem.
-
mantis's post in Device Screenshots was marked as the answerThis one is my favourite: http://ami.responsivedesign.is/
-
mantis's post in A little help enqueuing scripts? was marked as the answerGot it! (I think, or at least its closer)
function load_custom_wp_admin_style() { wp_enqueue_script('jquery-ui-datepicker'); wp_enqueue_script('jquery-ui-slider'); wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/jquery-ui-custom.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' ); The jquery-ui-datepicker and jquery-ui-slider don't need to be registered as they are already part of the core.
Gladly! I hate unresolved issues.
If anyone else has a better solution I'm all ears.
-
mantis's post in help! SQL foreign key problem was marked as the answerIt turns out the problem was that my candidats table already had film ids entered as "0" so it couldn't allow auto incrementation as three objects at 0 were already entered. Anyway its working now