pybiru
Forum Replies Created
-
Cheers Treebeard what a hero you are, selfless.
I entered it exactly like yours there and it came out as HTML/ OK for me.
Not sure why we are getting different results. Could be something to do with the theme maybe, or versions, are you on the latest version of the plugin and wordpress?
Hmm, I did it locally and it worked for me. I entered…
<em style='color:green'>Validation errors occurred. Please confirm the fields and submit it again.</em>Not sure why it’s different for you.
Sure, in admin…
Left sidebar->Contact(cf7 plugin)->Click on your form->look for tab titled “Messages”. You can include HTML in these fields.
I just wanted to make the borders of the inputs red. Some CSS knowledge required.
Hide standard error messages with…
.wpcf7-not-valid-tip{ display: none !important; }Then if the form is invalid, it adds a class “invalid” to the form itself. So then to make fields that are invalid highlighted in red…
form.invalid input.wpcf7-not-valid{ border:1px solid red; background:#f0e3e3; }That’s one solution anyway.
Forum: Fixing WordPress
In reply to: slideshow plugin – add rel=0 to end of srcI just hardcoded it in the end here…
‘/wp-content/plugins/slideshow-jquery-image-gallery/js/SlideshowPlugin/slideshow.min.js’
Then just search in text editor for “&wmode=opaque” and add the rel=0 to the end. Not ideal but works.
Forum: Plugins
In reply to: Magic FieldsIt’s not just file uploads, any field type when I hit save fails to save.
Forum: Fixing WordPress
In reply to: Pagination on custom post_typeThanks for reply keesiemeijer.
Your first link did the trick, I have it working now. In Magic Fields plugin, I could click “Magic Fields -> Edit Post Type” and then tick a box for “has archive” and under that “archive slug” I entered “courses”(my custom post_type) and it works now.
Thanks a million.
Forum: Fixing WordPress
In reply to: custom post_type loopworking with just parents pages now, the final code…
<?php $args = array('post_type' => 'cities', 'depth' => 1, 'orderby' => 'name', 'post_status' => 'publish', 'post_parent' => 0, 'posts_per_page'=>'-1'); $wp_query = new WP_Query($args); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <li> <div class="city"> <?php the_post_thumbnail(); ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php the_excerpt(); ?> </div> </li> <?php endwhile; else: ?> <p>Oops, something has gone wrong. No cities currently available.</p> <?php wp_reset_postdata(); // reset the query ?> <?php endif; ?>Forum: Fixing WordPress
In reply to: custom post_type loopAh, great. That’s working beautifully now. One more thing, I have (‘depth’ => 1), in the $args array yet it is outputting the child pages too. Is there a differen’t way to only get the parent pages?
Thanks a million for the help/advice.
Forum: Fixing WordPress
In reply to: custom post_type loopThanks for help Peter, I was getting syntax errors from your code(probably sloppy integration, not great in PHP).
I have the following working, but its outputting all the child pages aswell. I just want all the top level pages. I added “depth” => 1, but doesn’t seem to work.
<?php query_posts(array('post_type'=>'cities', 'depth' => 1)); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <h3> <a href="<?php echo the_permalink(); ?>"><?php echo the_title(); ?></a> <?php the_content(); ?> </h3> <?php endwhile; ?>Forum: Fixing WordPress
In reply to: custom post_type loopThanks for reply Peter. The “wp_list_pages” should have been commented out, I had the titles pulling in/ working using it. But I need thumbnails and some content/ excerpt too.
Whats not working, I need the title, thumbnail and excerpt for each city to be output in the loop. At the moment nothing is getting output.
Forum: Fixing WordPress
In reply to: get parent pages name in string formatThanks a million keesiemeijer. Works great.
Forum: Hacks
In reply to: custom layout for posts categoryThanks bcworkz. I’ll look into WP_Query. Was not too familar with it. Syntax is something like…
$query = new WP_Query(‘category_name=food, sort_by=year’);?
Forum: Plugins
In reply to: magic fields 2 – custom template issueLatest version from github has this issue fixed.