johansenkristian
Forum Replies Created
-
Please help on these.. I havn’t figured it out jet..
Forum: Hacks
In reply to: Plugin or inspiration for toggle javascriptForum: Hacks
In reply to: Plugin or inspiration for toggle javascriptCould this be useful?
Forum: Hacks
In reply to: Plugin or inspiration for toggle javascriptmaybe there is a plugin!?
Forum: Hacks
In reply to: custom fields with do_shortcode error if emptyThank you for you reply.
It seems to be another problem..
When i delete the custom field in one of the posts, the posts after don’t react on the css anymore. Like there have to be a custom field otherwise i want work.. I know its hard to imagine but I think i could be something with the shortcode.php as i wrote in the prev message..
Do you have any ideas of what that could be?
Forum: Fixing WordPress
In reply to: Style site after uploading with codekitI meant if I want to change the css.. What do you mean with childtheme i know what it is but is it referring to something in the css?
Lets say I want the menu to be displayed in block instead of inline-block. How do i do that?
I using codekit because i like the features.
Thanks!
Forum: Hacks
In reply to: List of posts with contental right.. Thank you for your time.. I’m trying to figure it out..
Forum: Hacks
In reply to: List of posts with contentAnd is it possible to add get_post_meta as well to the code?
Forum: Hacks
In reply to: List of posts with contentOkay i figured out the problem.. It was the name that was wrong $objPosts was $objPost in the if statement..
But how can I wrap the posts into different sections.? is it possible to add that in the query..
Forum: Hacks
In reply to: List of posts with contentThank again..
I gives me an notice about undefined variable and fatal error “call to member function have_post() on a non-object in
if ( $objPost->have_posts() ) : while ( $objPost->have_posts() ) : $objPost->the_post();
any ideas?
Forum: Hacks
In reply to: List of posts with contentLike this? It gives me an unexpected endwhile error
<?php $args = array( 'category_name' => 'recipes', 'posts_per_page' => 100, 'orderby' => 'date', 'order' => 'asc' ); $objPosts = new WP_query( $args ); if ( $objPost->have_posts() ) : while ( $objPost->have_posts() ) : $objPost->the_post(); $content = get_the_content(); if( !empty( $content ) ) endwhile; endif; ?>
[Moderator Note: Please post code & markup between backticks (not single quotes) or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Hacks
In reply to: List of posts with contentThank you for replying..
It gives me at fatal error: Can’t use function return value in write context in this line:
‘if( !empty( get_the_content() ) ‘