jocken
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: media_sideload_image doesn't attach image to postRemove the double quotation marks around the number. Then I think that $desc should contain an array.
Forum: Hacks
In reply to: Author Not Updating in save_post hookI think wp_insert_post requires an array. That will say:
$post_update = array(
‘post_author’ => $authorID
);or
$post_update = array();
$post_update[‘post_author’] = $authorID;We have no idea what you are talking about. Please use in title [Plugin: -name of plugin-] and the plugin contributor will find you.
Forum: Hacks
In reply to: Assigning post images to a gallery programmatically?http://codex.ww.wp.xz.cn/Function_Reference/wp_insert_attachment
I think that’s what you are looking for 🙂
Forum: Themes and Templates
In reply to: Looking for this Plug-inIts not a plugin, it’s a theme-feature. If you have som skills in jquery I would recommend doing the same thing with jquery cycle, since it’s not impossible.
Otherwise there are nivo slide plugin
I can take this in swedish if you want but it’s easier for other people to help as well if we do this in english.
First of all. You don’t have a loop.
http://codex.ww.wp.xz.cn/The_Loop
When you have a loop you can use the the_content and more things. Using a image as header is bad SEO. You should have a <h1> with the text inside the_title and just use something like text-indent if you don’t want it to be visible.
Forum: Themes and Templates
In reply to: Moving Sidebar from left to rightJust put the #content to float:left, that worked for me in google chrome. What browser are you using?
Forum: Themes and Templates
In reply to: Ie6 conditional stylesheetput !important after the css, like this:
.css{
display: none !important;
}That will override all the css and it’s only visible for ie6.
Otherwise you can use the css hack by putting a _ before, like this:
.css{
_display: none;
}None of them are pretty but they work.
Forum: Hacks
In reply to: Media submit hook?I would do it like this, have no idea if it works though, so consider that.
add_action('add_attachment', 'my_shell_exec'); add_action('edit_attachment', 'my_shell_exec'); add_action('delete_attachment', 'my_shell_exec'); function my_shell_exec(){ $output = shell_exec("bash ./upload.sh"); echo $output; }Forum: Hacks
In reply to: redirect to admin page after publishing new posthave you tried add_filter?
Forum: Hacks
In reply to: Media submit hook?add_action('add_attachment, 'YOUR_FUNCTION');
http://codex.ww.wp.xz.cn/Plugin_API/Action_ReferenceI solved it!
This is just the single button which says share.
<?php $url = get_permalink(); $title = the_title('','', false); ?><a class="addthis_counter addthis_pill_style" addthis:url="<?php echo $url; ?>" addthis:title="<?php echo $title; ?>"></a>However, it does not catch the post image because it still checks the page and not the post, will see if I can fix that to.
Updated:
It works with some images
Thanks, it also works with custom roles created by user role editor!
Forum: Plugins
In reply to: List all images attached to a post based on galleryYou’re welcome 🙂
Same issue, even if I have imported the existing ones to disqus, they won’t show up either.