NateJacobs
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Posts, Custom Fields and CategoriesYou can use the function
in_category( category #)
. Then use anif
statement to show the custom field or not.Forum: Plugins
In reply to: Can the 'Register' button change appearance?There are a couple different steps to accomplish what you want. First though, could I have a link to the site with the plugin enabled so I can see what style you specifically want.
Step 1 is to add a class to the
wp_register
function like i demonstrated above. You will need to match the class used by the button to give it its style. You are not looking for the register command in the stylesheet. It will make more sense once if I can see your site and understand what style you wan to mimic.To make sure I am on the same page, this is the plugin you are talking about?
Forum: Fixing WordPress
In reply to: What does 'Subscribed' Registered Users meanDo you mean the register user form? If so, WordPress provides a form to let visitors register for the site. When you log into your site you will see a small link below that says “Register” that links to the register form
/wp-login.php?action=register
. If you are using TwentyEleven and many other themes by default there is a widget that includes a link to register or login. If you allow registration to your site.Forum: Plugins
In reply to: Custom Field ValuesTry
function my_display_values() { global $post; $values = array( 'Summary' => get_post_meta( $post->ID, 'summary', true ), 'Recommendation' => get_post_meta( $post->ID, 'recommendation', true ), 'Conclusion' => get_post_meta( $post->ID, 'conclusion', true ) ); foreach( $values as $key => $value ) { if ( !empty( $value ) ) { print $key.': '.$value.'<br>'; } } }
To call in your single post template use
<?php echo my_display_values(); ?>
You get the post id using the global
$post
, retrieve the custom post meta, iterate over the array called$values
and print out the results only if the custom meta has content.Forum: Plugins
In reply to: Best logging plugin?Forum: Themes and Templates
In reply to: Creating Child Theme and Modifying Twenty ElevenHi Mark,
I hope I can help you out with some step-by-step instructions.
Once we finish these steps you will have a functioning child theme based on the TwentyEleven parent theme with the comments form removed and the page title no longer showing.
You will need FTP access to your hosting account if you have already set up a website. If you do not know how to FTP into your account you will need to contact your hosting provider for instructions.
- On your computer, create a folder called
mytheme-mark
. - Create a CSS stylesheet using the text editor of your choice. Not sure, two options listed below
- If you use Windows: open Notepad.
- If you use a Mac: open TextEdit and go to ‘Format’ in the menu bar. Click “Make Plain Text”.
- Copy this code and paste it into the text editor.
/* Theme Name: Mark's Theme Theme URI: Description: Mark's Child Theme of Twenty Eleven Author: Mark Author URI: Template: twentyeleven Version: 1.0 */ @import url("../twentyeleven/style.css");
- Save the file into the folder you created earlier (
mytheme-mark
) asstyle.css
- In your text editor create a new file
- Copy this code and paste it into the text editor.
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <!-- <h1 class="entry-title"><?php the_title(); ?></h1> --> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-meta --> </article><!-- #post-<?php the_ID(); ?> -->
- Save the file into the folder you created earlier (
mytheme-mark
) ascontent-page.php
- Upload the
mytheme-mark
folder using FTP into thewp-content/themes
folder- Log in to your site and go to the admin dashboard.
- Go to Appearance->Themes
- You will see the current theme listed first with any additional themes listed below. You should see the theme named Mark’s Theme. Below that is a link that says “Activate”. Click that link. Your theme will now show as the Current Theme
- In the admin dashboard go to Settings->Discussion
- Under Default Article Settings you will see a checkbox with text to the right that says “Allow People to post comments…”. Uncheck this box.
- In the admin dashboard go to Posts->All Posts
- Hover your mouse over the title of a post. Click the “Quick Edit” link that appears below.
- Look to the far right and you will see a check box with text that says “Allow Comments”. Make sure this box is unchecked. Do this for all your posts.
- Visit your site. You should now see that your pages have no titles and all your posts no longer have the “Leave a Reply” form.
Forum: Plugins
In reply to: download profile informationThis plugin appears to let you download which ever table from the database you wish into a .csv. The extra user information is stored in the
_usermeta
table.Forum: Hacks
In reply to: Create XML pages with the help of WP post editThis plugin might help. Or it can give you a starting point to build your own.
Forum: Fixing WordPress
In reply to: 2 WP Blogs on one site with one subscriber listForum: Themes and Templates
In reply to: font size options in twenty eleven?ok thank you for that, but how do i change the h1,h2,h3 etc etc?
The
h1
,h2
,h3
, etc depend on which part of the page. For example, to change the commenth3
you will need to add this to your child stylesheet.comment-content h3{ font-size: 30px;}
. You will need to read through the TwentyElevenstyle.css
to see what other values are there. Or if you are using Chrome or Safari use the web inspector to see which tag is what style. With Firefox you can use FireBug.However, it sounds like you could use a good tutorial on CSS and HTML editing without a tool like Dreamweaver. I would suggest this set of videos to get a base of knowledge.
Forum: Fixing WordPress
In reply to: White pages, have to refresh the pageFor the other two potential solutions you just need FTP access to your host so you modify the wp-config.php file.
Forum: Plugins
In reply to: 30 day password expirationI played around with some code this evening and created a plugin I think might help you. The plugin looks at the user registered date and limits access after 30 days have past. There are a few variables you can change at the top of the class. The code is well commented, but let me know if you have any questions if you try it.
Forum: Hacks
In reply to: export FULL! users dataYou’re welcome.
Forum: Hacks
In reply to: export FULL! users dataWordPress stores all the user information in two database tables,
wp_users
andwp_usersmeta
. They are connected using the user ID. This plugin appears to let you pick which tables you want to export and save them as a .csvTwo ways to use WordPress:
1. Self-hosted (Laughing Squid, MediaTemple, Bluehost, Go Daddy, etc)
2. WordPress.comYou can use plugins on a self-hosted site. You cannot use plugins if your website is hosted by WordPress.com
- On your computer, create a folder called