corpodibacco
Forum Replies Created
-
so nobody experiencing this?
Forum: Alpha/Beta/RC
In reply to: wp2.7 BUG on – wp_list_comments()This is a bug, because it also affects the pagination of the comments.
If I separate comments and pings, and apply pagination (two things you can do with WP 2.7), the pagination will still consider comments+pings, producing always one or two empty pages at the end.
Forum: Plugins
In reply to: [Plugin: Stray Random Quotes] [all-quotes] paging links problemOf course you’re right. And the functions you linked to are golden! At least for me who never studied any kind of programming language, and only navigates into PHP by sight.
Frettsy, thanks a million for this post… I wish I had read it before I released the latest revision 1.8.3 yesterday ??
Forum: Fixing WordPress
In reply to: [Plugin: Stray Random Quotes] [all-quotes] Sorting Issuein fact, you’re right! The help page is misleading. Thanks for pointing this out. Since I just released version 1.8.3 I will update the help page silently for the moment.
Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?…but on the codex those are listed among the actions you can hook in plugins, here
Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?When I use
add_action('wp_update_post
nothing happens.
There is a loop of infinite posts being created when I useadd_action(wp_insert_post
, while in other cases no additional posts seems to be created, but Apache crashes anyway.As I said, save_post does what it is supposed to do (the post title is changed) but then Apache crashes (I am obviously talking about my local XAMPP Apache).
$my_array
works fine, it is whatwp_update-post
does that isn’t clear to me…anyway, in case you are interested: the first draft of my plugin is here. I welcome feedback! ??
Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?using
add_action ('init'
finally worked with the first function! So thanks a million man.anyway, problem: if I use ‘init’ the first function makes no distinction between publishing or editing. I wanted this function to happen only when the post is published.
But I guess this could be worked out by checking on other $_POST values such as ‘publish’ or ‘post_status’.Yet, for the sake of exploring possibilities, the second function should be better for my case….
Making use of$id
(I forgot to put$id
in the example here like you noted but it was present in my code when I tested it) it could alter the title after$_POST
and therefore be hooked into other actions other than ‘init’. My experiments:it does not work with
'publish_post'
,'wp_update_post'
or'init'
itself.strangely enough,
'save_post'
seem to work but it causes Apache to crash down!'wp_insert_post'
creates a infinite series of empty posts titled ‘test’ until apache breaks down.'edit_post'
duplicates the post you’re editing ad libitum until apache breaks down!!I guess I’ll work with the first… ??
Forum: Plugins
In reply to: [Plugin: Stray Random Quotes] Not rotating anymoreWhat do you mean it doesn’t rotate? Does it always show the same quote? Is it the ajax loader? Do you use widgets or template tags? Have you installed other plugins in the meantime? more details please ??
Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?Actually, your suggestion sounds right but it does not work for me.
post_title
is not changed upon publication. Do you think the filter should be added to some other function?Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?Also this
function for_example() { $my_post = array(); $my_post['ID'] = $id; $my_post['post_title'] = 'test'; // Update the post into the database wp_update_post( $my_post ); return $id; } add_filter('publish_post', 'for_example');
doesn’t work. Still looking for help…
Forum: Plugins
In reply to: How to do things to POST_TITLE when a post is PUBLISHED?I think it would, but the following doesn’t work:
function for_example() { $_POST['post_title'] = 'test'; } add_filter('publish_post', 'for_example');
Forum: Plugins
In reply to: [Plugin: Stray Random Quotes] Remove refresh linkThat’s a weird behavior… The new version 1.8.2 gives you the ability to remove the “new quote” link, BUT, before you do, please try if also the new version gives you the same problem. It should be fixed.
Forum: Plugins
In reply to: [Plugin: Stray Random Quotes] [all-quotes] paging links problemFrettsy, you are absolutely right, a usual sloppy coding on my part. Your fix is perfect for custom permalinks except that it would not work if someone uses a traditional permalink with a
?
already in place. But I’ll think about it: and it will be fixed in the next version.Forum: Fixing WordPress
In reply to: Stray Random Quotes pluging shows no quotes after upgradeOh, no, not at all, I know what caused the problem. If you don’t deactivate the old and reactivate the new version, certain conversion operations cannot happen. Usually this is not an issue if you update automatically via wordpress. But if you just remove or overwrite the files, there can be problems at least with certain versions.
Forum: Fixing WordPress
In reply to: Stray Random Quotes pluging shows no quotes after upgradeHave you deactivated the old version first? If not, try deactivating and reactivating.