mikec09
Forum Replies Created
-
Forum: Plugins
In reply to: [Network Subsite User Registration] Multisite subdomains settings failgreat. I had not found that info before but that’s the best solution. thanks
Forum: Plugins
In reply to: [Network Subsite User Registration] Multisite subdomains settings failThanks. How about after you successfully register, you’re directed to the forums landing page? or a page of the admin’s choosing?
Forum: Plugins
In reply to: [Custom Post Type UI] uncategorized if no category chosennice, thank you. if someone else has the same question, this is how I got it to work in my case since I’m using categories of the cpt and not the core categories.
function my_cpt_default_category( $post_id, $post, $update ) { if ( 'my_cpt_slug' !== $post->post_type ) { return; } if ( wp_is_post_autosave( $post_id ) ) { return; } $current_terms = wp_get_post_terms( $post_id, 'cpt_tax_slug' ); if ( empty( $current_terms ) ) { // hover over the uncategorized term: (tag_ID) $term_id = 242; wp_set_object_terms( $post_id, $term_id, 'cpt_tax_slug' ); } } add_action( 'save_post', 'my_cpt_default_category', 10, 3 );
Forum: Plugins
In reply to: [Redirection] non-www vs wwwI think going from non-www to www you would use this:
/(*)
https://www.domain.org/$1You can set the second part to whatever. I hope the developer will confirm that.
Forum: Plugins
In reply to: [Display Posts - Easy lists, grids, navigation, and more] dps-templateThanks, I tried using the functions by using ‘get_the…’ but they all returned empty. what ended up working was the following:
<div id=”post-<?php the_ID(); ?>” class=”webinar-wrap2″>
<div class=”alignleft webinar-block”>
<div class=”webinar-top”>
<span class=”webinar-cat”><?php $category = get_the_category(); echo $category[0]->cat_name; ?></span>
[a href=”<?php the_permalink(); ?>”><span class=”h2textblock”><?php the_title(); ?></span>
</div>
<div class=”webinar-bot”>
<span class=”webinar-title”>
<?php the_excerpt(); ?></span>
[a href=”<?php the_permalink(); ?>”><button class=”btn btn-large btn-webinar btn-noline” type=”button”>View Webinar</button>
</div>
</div>
</div>Not sure the difference but it works. In any case this plugin is a great resource.
- This reply was modified 6 years, 1 month ago by mikec09.
Forum: Plugins
In reply to: [Redirection] Class ‘RE_Database’ not foundthanks. it’s very odd that the error is Class ‘RE_Database’ not found – I see ‘class Red_Database’ in you files.
Forum: Plugins
In reply to: [Redirection] Class ‘RE_Database’ not foundI updated the normal way in wp-admin plugins. Since you said that I thought I try to update files direct on server and now it seems to be back to normal. I guess something got corrupted in the update process.
would you say I should normally update files directly on the server in the future?