frobitz
Forum Replies Created
-
Forum: Plugins
In reply to: [JS Archive List] Creating Archives For Custom Post TypesHey, yes, I managed to hack together a modification to handle the first issue I had with the plugin, and I’ve been using a piece of code in my themes functions.php file to correct the URL’s using rewrites for the second.
Happy to send you the modified file if it’s going to be any help to you and other users – what’s the best way to do that?
Forum: Plugins
In reply to: [JS Archive List] Creating Archives For Custom Post TypesThat works really well thanks Miguel.
I have a slightly more complex implementation of custom posts and wondered if you could help with some advice.
1. I have two custom post types so I need to look at recoding your solution to allow for that. Any advice on the simplest way to handle this?
2. The initial custom post i have this working for sits under a permalink set in
register_post_typein functions.php like so'rewrite' => array('slug' => 'events')However the links generated by the widget don’t pick this up. I could hardcode in the permalink but again this would only solve things for one of my custom post types.
Be grateful for any help.
Thanks,
Rich
Solve it. My poor understanding of what was going on around the query was to blame. Here’s a solution:
<?php get_header(); ?> <h1>Home page</h1> <?php $args = array( 'post_type' => 'any', 'meta_key' => 'front_page_order', 'orderby' => 'meta_value_num', 'order' => 'ASC' ); $boxes = new WP_Query( $args ); if ( $boxes->have_posts() ) : while($boxes->have_posts()) : $boxes->the_post(); ?> <article> <h1><?php echo the_title() ?></h1> </article> <?php endwhile; endif; ?> <?php get_footer(); ?>Fixed it myself – my own retarded fault. Had some conflicting code in functions.php
I am dumb 🙂
Sorry to bump but really quite desperate for a solution to this that doesn’t involve starting again from scratch! It’s driving me nuts trying to fix and it seems like its a bug in the core of WordPress rather than any plugin causing it as i have only Maintenance Mode installed 🙁
Forum: Fixing WordPress
In reply to: How to modify the generated HTML the blockquote button makes?It limits the user to only having one P tag in the quote and CSS isn’t quite up to scratch across the browsers I have to support to deal with attaching styles only to the first child of the blockquote tag.
I’ve considered using JavaScript for older browsers, but that’s a fallback position and I’d like to solve it at the WordPress/PHP level if possible.
Thanks for your suggestion though, appreciated.
Forum: Themes and Templates
In reply to: Grammatical tag list with ‘and’ before last tagThats fantastic, works a charm.
Thanks very much!