josjo
Forum Replies Created
-
This plugin looks promising:
https://www.ads-software.com/extend/plugins/post-type-switcher/
Well, almost. Unfortunately you can’t use functions like
the_excerpt()
orget_the_excerpt()
since you’re not in The Loop. You can however access the post data directly like this:$event->post->post_content
. Have a look at this question for details about the post object: https://wordpress.stackexchange.com/questions/3203/what-are-all-the-properties-of-the-wordpress-post-object. The drawback is that this bypasses all filters (can also be a good thing sometimes).Another way to do it would be to create your own “The Loop” like this.
global $post; $save = $post foreach ($events as $event) { $post = get_post($event->post->ID); $excerpt = get_the_excerpt(); // or print it directly with the_excerpt() } $post = $save;
This is an excerpt from the comments:
* @param int $start_time limit to events starting after this (local) UNIX time * @param int $end_time limit to events starting before this (local) UNIX time * @param array $filter Array of filters for the events returned: * ['cat_ids'] => non-associatative array of category IDs * ['tag_ids'] => non-associatative array of tag IDs * ['post_ids'] => non-associatative array of post IDs
Try changing
$filter = array($cat);
to$filter = array('cat_ids' => array($cat));
You also have access to the complete post object through
$event->post
and don’t have WP_Query the posts again. You have to handle pagination yourself though.Forum: Themes and Templates
In reply to: [Scherzo] [Theme: Scherzo] CSS Inserts section available?It’s hard to do anything if you can’t change the files on the server. I would like to help you but that would mean I’d have get access through Plesk or FTP.
I think you’re on the right track with jQuery. I can se two different versions of jQuery loading on the site. One from WordPress core and one from the theme (Quantum). I would suggest disabling the one in the theme and see what happens.
There is a bug report for this. I just updated it with my findings. Check it out:
https://trac.the-seed.ca/ticket/338Maybe there was a problem with the database export/import. If you have access to phpmyadmin you can check the tables
wp_ai1ec_events
andwp_ai1ec_events_instances
to see if the dates seem ok (they shouldn’t considering the problem you describe, but it’s worth having a look).Also check the file from the database export to see if you can find anything wrong there. If you want help analyzing the export you can post relevant parts here (use pastebin). But don’t post the whole file. Especially not the
wp_users
table.Forum: Themes and Templates
In reply to: [Scherzo] [Theme: Scherzo] CSS Inserts section available?Is this a local install or installed on a web server at some hosting company? If it’s hosted and you have access to cPanel you may be able to fix the permissions from there.
There is an empty cufon canvas that’s taking up space. Once I delete it the empty space above disappear. I gather you are using cufón for font rendering?
What theme are you using? Can you provide a link to the site?
Forum: Themes and Templates
In reply to: [Scherzo] [Theme: Scherzo] CSS Inserts section available?The child theme looks good. The problem is your css rules gets overridden by the calendar plugin. There are ways to tell WordPress which order it should load the css files, but that would need some changes in the theme.
Your options are:
1. Add !important after the property (i.e.
overflow: inherit !important;
). This only works if the plugin css doesn’t do the same.2. Make changes directly to the plugin css (all-in-one-event-calendar/css/calendar.css). Don’t forget to migrate your changes if you update to a newer version.
3. Rewrite the theme to use wp_register_style/wp_enqueue_style with dependencies. All-in-One Event Calendar does this so it should work.
Forum: Themes and Templates
In reply to: [Scherzo] [Theme: Scherzo] CSS Inserts section available?How does the css file for the sub theme look? Do you include the css file from the parent theme?
There is a JavaScript error in Tinyfader that’s part of the Toolbox theme. It seems it has trouble fading in the sponsor logos.
Sure. [email protected]