jazfotodesign
Forum Replies Created
-
Forum: Plugins
In reply to: Display Link To Only Specific Role/Capability?works fine, you will need user role editor to make user roles with just the levels you want, for example I made one with level_0 and level_1 as I only have 2 different types of roles. screenshot
i’m working on plug-in for this to make user roles easily and shortcodes.
<?php if(current_user_can('level_0')) : ?> level 0 content for user role 1 <?php endif; ?> <?php if(current_user_can('level_1')) : ?> level 1 content for user role 2 <?php endif; ?>
Forum: Fixing WordPress
In reply to: edit password protected post textOrin, can your plug-in customize individual posts or does it just change what it says for all of them?
Forum: Fixing WordPress
In reply to: Current Page Navigation Home (Static Front Page)Still searching…
Forum: Plugins
In reply to: [Wickett Twitter Widget] [Plugin: Wickett Twitter Widget] 40 years ago?Not resolved, see above post… I just mark resolved to keep my forum posts organized… sorry >.<
Forum: Plugins
In reply to: [Wickett Twitter Widget] [Plugin: Wickett Twitter Widget] 40 years ago?Never figured it out, ended using Advanced Twitter Widget works nicely.. https://jazsheen.com/about/
Forum: Plugins
In reply to: Display Link To Only Specific Role/Capability?ended up using,
<?php if(current_user_can('level_0')) : ?> <div class="messages"> level 0 content </div> <?php endif; ?> <?php if(current_user_can('level_1')) : ?> <div class="messages"> level 0 content </div> <?php endif; ?>
Forum: Plugins
In reply to: Display Link To Only Specific Role/Capability?bump
Forum: Plugins
In reply to: Display Link To Only Specific Role/Capability?or just show different content on same page to different levels
anyone?
Forum: Fixing WordPress
In reply to: edit password protected post textthank you alchymyth, very helpful ??
Forum: Fixing WordPress
In reply to: edit password protected post textcool the following code worked.
<?php add_filter( 'the_password_form', 'custom_password_form' ); function custom_password_form() { global $post; $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post"> ' . __( "This post is password protected. To view it please enter your password below:" ) . ' <label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form> '; return $o; } ?>
How can I put a link where the bold text is?
<a href="link">
doesn’t work$o = ‘<form class=”protected-post-form” action=”‘ . get_option(‘siteurl’) . ‘/wp-pass.php” method=”post”>
‘ . __( “This post is password protected. To view it please enter your password below:” ) .
`Forum: Fixing WordPress
In reply to: Category ArchiveEnded up just using
<?php wp_list_categories('orderby=name&include=12, 4, 5, 9, 6, 8, 7, 10'); ?>
Forum: Fixing WordPress
In reply to: Changed Directory – Won't work w/o WWWWell i’ve done it before and not had a problem. I just deleted my current .htaccess and it’s working now. Thanks esmi
Forum: Fixing WordPress
In reply to: Page Parent Target #used custom menu, linked to #
Forum: Fixing WordPress
In reply to: Changed Directory – Won't work w/o WWWIt was my .htaccess