isocreative
Forum Replies Created
-
Forum: Plugins
In reply to: Highlight item in list of posts based on current postThank you katart17!!
I’ve been trying tinker with the built in function for pages to use on posts to no avail. I’m surprised this isn’t requested more often, or built in.
For my own purposes, I needed it to work with a list by category, which worked just as well with your script.
<?php $myposts = get_posts('category=4&numberposts=999&orderby=title&order=ASC'); ?>
<?php $postid = get_the_id();
foreach( $myposts as $post):
?>
<li class="<?php if( $post->ID == $postid ) { echo 'current'; } ?>">" title="<?php the_title(); ?>"><?php the_title(); ?>
<?php endforeach; ?>
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..If you can post a link to the page where the style is breaking, I might be able to come up with a fix for you.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Call for sidebar calendar?Thanks Hax.
Your code will bring up the post calendar, but not the event specific calendar.
I ended up using the theme functions to register additional sidebars, so I could use the widget panel.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..Added note: Depending on the css of your theme, you may need to wrap the content div in the main div to get all the css styling that you expect to see on other pages.
Replace this
<div id=”tec-content” class=”upcoming”>With this
<div id=”main” class=”clear”>
<div id=”content”>
<div id=”tec-content” class=”upcoming”>And be sure to close the two additional divs at the bottom
</div></div></div>Forum: Plugins
In reply to: [Plugin: The Events Calendar] Links and Photos in Event ViewThis is happening because the description in list view is pulling the excerpt text. If you replace that function with the function for the content of the post, the links and images will be there.
Go to the the-events-calendar/views/ directory.
Then edit file list.php
replace
<?php the_excerpt() ?>with
<?php the_content(); ?>This should show the full content of the post, including links and images.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..In the the-events-calendar/views/ directory, you’ll want to edit the list.php and single.php files.
Towards the top of the page, find this code
<div id=”tec-content”and add this above it (basically wrapping the tec-content div in your content div).
<div id=”content”>then find the closing </div> tag towards the bottom of the page, and add another closing </div> tag.
This should apply your css style for content.