extatix
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Linking pages to widgetsYou mean you want to choose what widget goes where?
Forum: Fixing WordPress
In reply to: Lose the data in Custom FieldsI’ve put it in my save function.
Forum: Fixing WordPress
In reply to: Permalinks helpNo, not specific.
But I call it in an init-function btw.function flush_myrewrite_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } add_action('init', 'flush_myrewrite_rules');
Forum: Fixing WordPress
In reply to: Lose the data in Custom FieldsIt’s autosave that messes it up. Did you include
if ( defined(‘DOING_AUTOSAVE’) && DOING_AUTOSAVE ) return $post_id; if ('page' == $_POST['post_type']) { if (!current_user_can('edit_page', $post_id)) { return $post_id; } } elseif (!current_user_can('edit_post', $post_id)) { return $post_id; }
in your functions?
Forum: Fixing WordPress
In reply to: My blog is so slowSettings – reading.
Forum: Fixing WordPress
In reply to: Permalinks helpI had this too when changing permalinks, adding this to my functions.php worked:
flush_myrewrite_rules(); function flush_myrewrite_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); }
Forum: Fixing WordPress
In reply to: Query Custom TaxonomiesReplying to my old mess, this is how I actually ‘fixed’ it:
function related_mess_revisited() { global $wp_query; $exclude = $wp_query->post->ID; $all_relations = get_the_term_list( $post->ID, 'relations',' ', ', ', '' ); $relations = explode(",", $all_relations); if (!empty($all_relations)) { ?> Related to: <?php foreach ($relations as $relation) { $args = array( 'relations' => $relation, 'showposts' => 10, 'post__not_in' => array($exclude), ); ?> <ul class="related-mess"> <?php $rmquery = new WP_query($args); if( $rmquery->have_posts() ) { while ( $rmquery->have_posts()) : $rmquery->the_post(); ?> [do stuff]
Forum: Plugins
In reply to: [Random Post Link] [Plugin: Random Post Link] Any way to get the random url?Never mind this one, adding ?random after my URL is enough of course. But how can I let it redirect to a custom post type? This does not work:
function my_random_post_args($args) { $args['post_type'] = 'quiz'; return $args; } add_filter('random_post_args', 'my_random_post_args');
Forum: Themes and Templates
In reply to: where are the pagesYou don’t need to add a widget. Just go to appearance – menus and make a menu. It will be visible in the normal place.
Forum: Fixing WordPress
In reply to: Query Custom TaxonomiesAh, I see. That piece of coding didn’t work either but I’ll look if I can make a ‘blend’ of it.
Forum: Fixing WordPress
In reply to: Loop within a loop – comments problemwp_reset_query();
is the solutionForum: Fixing WordPress
In reply to: Index & wp_list_categories()I’m currently doing it this way, but it should be easier ??
<?php wp_list_categories('title_li=<h4>' . __('#') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=107'); ?> <?php wp_list_categories('title_li=<h4>' . __('A') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=108'); ?> <?php wp_list_categories('title_li=<h4>' . __('B') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=109'); ?> <?php wp_list_categories('title_li=<h4>' . __('C') . '</h4>&orderby=name&hide_empty=0&show_count=1&child_of=117'); ?>
Forum: Themes and Templates
In reply to: Dont waste your time@ johnravrasta
That’s a bug in the older version. Easily fixable.Forum: Themes and Templates
In reply to: Thumbnail imageVisit the Arras Theme forum, there’s plenty of help and info there.
[sig moderated as per the Forum Rules]
Forum: Fixing WordPress
In reply to: How to return the basic url of a thumbnail?Not in this theme no ??