michaeloc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: creating parent category and subcategory list in sidebarfigured out the first part how to add current menu item class ?? hope this helps others
$postid = get_the_id(); <li <?php if( $post->ID == $postid ) { echo class="current"'; } ?>></li>
Forum: Plugins
In reply to: widget logic conditional statementThanks Alyhymyth,
That worked! much appreciated
Mike
Forum: Fixing WordPress
In reply to: page title, excerpt and read more link on homepageI have managed to put together this code, can anyone advise how to add html tags to the title and excerpt so that I can style them individually.
<?php $page_id = 5; $page_data = get_page( $page_id ); $content = $page_data->post_content; $title = $page_data->post_title; echo $page_data->post_title; echo $page_data->post_excerpt; ?> <a href="<?php echo get_permalink( 5 ); ?>">page link</a>
Forum: Fixing WordPress
In reply to: page title, excerpt and read more link on homepageWould appreciate if anyone could point me to a tutorial that shows how to show a page title, excerpt and read more link on a home page.
I want to create a page template so will code the functionality directly into that page and style with css
What I am having an issue with is finding a clear set of instructions on how to go about it. My knowledge of the codex is pretty average and php not great, but I have a pretty decent grasp of how to put things together.
Forum: Fixing WordPress
In reply to: Pagination for custom post type on page templateThanks vtxyzzy,
I ended up installing the page navi plugin
and inserting code below and it’s now working. I like your solution because it doesn’t require a plugin so will keep for future reference
<?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $wp_query = new WP_Query(array('post_type' => 'testimonials', 'paged' => $paged, 'post_per_page' => 5) ); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
Forum: Fixing WordPress
In reply to: showing summary and continue reading link for twenty eleven themeThanks Christi here’s that function
// sends readmore link to top of page function remove_more_jump_link($link) { $offset = strpos($link, '#more-'); if ($offset) { $end = strpos($link, '"',$offset); } if ($end) { $link = substr_replace($link, '', $offset, $end-$offset); } return $link; } add_filter('the_content_more_link', 'remove_more_jump_link');
Forum: Fixing WordPress
In reply to: showing summary and continue reading link for twenty eleven themeHi again vodoo
I checked the codex and found a function that removes the jump link so you can ignore last question thanks.
BTW I really appreciate both contributions to this thread thanks
Forum: Fixing WordPress
In reply to: showing summary and continue reading link for twenty eleven themethanks for the code voodoo
is there a way to have the linked page open at the top of the page rather than open from where the continue reading link
see link to site
Forum: Fixing WordPress
In reply to: showing summary and continue reading link for twenty eleven themeHi Christi,
thanks I think I will go with the easier of the two (add the <!–more–> tag in post)
This works for posts in the default blog but not for custom posts type entries.
I used a page template to display the list of posts in my custom post types page and I think this is causing the problem
Forum: Themes and Templates
In reply to: 2011 theme random headers and featured imageThanks alchymyth much appreciated
My image was over 1000px in width when I cropped it too 1000px it displayed. So looks like need to be specific with featured image size for the header image area.
Update on this the fix worked through google Chrome, not for my version of firefox.
https://example.com/wp-admin/?reset_admin_menu=1
Thanks for posting
Hi I am having the same problem,
I moved the admin menu Item from the settings menu to the tools menu and got the same message
You do not have sufficient permissions to access this page.
Problem is I have hidden my plugins menu item, so now I can’t access this plugin at all.
any ideas would be appreciated
The following didn’t work
You could try resetting your menu configuration. To do that that, go to:
https://example.com/wp-admin/?reset_admin_menu=1(Replace example.com with your own site.)
Forum: Fixing WordPress
In reply to: NextGEN Slideshow widgetI found a solution to this issue if it helps anyone.
added a following css
.ngg-widget, .ngg-widget-slideshow {
padding-top: 0 !important;
position: relative;
}Forum: Fixing WordPress
In reply to: NextGEN Slideshow widgetHi Davey, No haven’t found a solution yet. Have to live with it for now.