pressingprojects
Forum Replies Created
-
Forum: Plugins
In reply to: [SendPress Newsletters] [Plugin: SendPress] Add user to list when registering+1
Forum: Plugins
In reply to: [WP Favorite Posts] [Plugin: WP Favorite Posts] Favorite list on profile pageThis query works for me…
You would need to change the meta_value to the current users id<?php // Display user favourite courses $args = array( 'post_type' => 'post', 'meta_key' => 'wpfp_favorites', 'meta_value' => $auth_id, 'numberposts' => 20, 'orderby' => 'meta_value', 'order' => 'DESC' ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <h5><a href="<?php the_permalink(); ?>" title="Click to view <?php the_title(); ?>"><?php the_title(); ?></a></h5> <?php endwhile; else: ?> <p>No favourite courses just yet.</p> <?php endif; wp_reset_query();?>Forum: Fixing WordPress
In reply to: Convert static HTML into editable areaWell that would involve creating custom fields for all of the little ‘bits’ of content.
First, create a page called home or index or whatever.
Go to Settings > Reading and set the ‘Front Page displays as’ option to a static page and choose the page you just created.Install the Types plugin so that you can add custom fields – http://wordpress.org/extend/plugins/types/
Follow the instructions for creating custom fields. These will be the editable ‘blocks’ on your html/index page.So for the Classic Cookies menu item you would create a Title custom field (calling the field slug ‘cookies_title’), a description field and a price field.
The below code pasted into the index file would then display the content your client has written into the custom field called ‘cookies_title’.
<?php if (!((get_post_meta($post->ID, 'wpcf-cookies_title', TRUE))=='')) { echo get_post_meta($post->ID,'wpcf-cookies_title',TRUE); } ?>That should be a start.
Forum: Fixing WordPress
In reply to: Convert static HTML into editable areaCreate a page (call it anything) and type something into the TinyMCE editor. Now visit the page you have just created and see if something shows up.
Forum: Fixing WordPress
In reply to: Convert static HTML into editable areaTo display the content of the Tiny MCE editor you need to add
<?php the_content(); ?>to your index page.There is a bit more involved than that to getting the site up and running though.
I’d suggest viewing some tutorials on the subject, because it really isn’t as easy as you are wanting it to be.You should be creating menu’s dynamically by registering a menu:
http://codex.wordpress.org/Function_Reference/register_nav_menusAnd this will display the menu:
http://codex.wordpress.org/Function_Reference/wp_nav_menuMaybe download a free theme and see how they do things.
Forum: Fixing WordPress
In reply to: Resizing ProblemsIt is a responsive theme, it is meant to do this.
Forum: Fixing WordPress
In reply to: Adjusting page dimensions to header image dimensionsAdd this code to either your child theme css or the main theme css:
.site { width: 767px; }Forum: Fixing WordPress
In reply to: Weird lengthy javascript code appearing before page headerIt looks as though your site has been hacked possibly