cvilela
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress site down because of code injectionThanks, it turned out to be a domain configuration problem. The domain was transfered from another hosting account and got messed up. Didn’t know about that.
Before I found the problem, I was able to do all the WP updates via the dashboard using the https://www.pg.org/pg link (fixed the siteurl and home values in the db for it to work).
Glad it was not hacked.
Question: I perfer not leaving the urls above in this post, can I remove them?
Thanks
CForum: Plugins
In reply to: [Display Widgets] V1.22 not working with WordPress 3.5 and WPMLNope, but 1.2.4 works with WP 3.5.1 and WPML 2.6.3, just tested it. Thanks sswells.
C
Forum: Plugins
In reply to: [Display Widgets] [Plugin: Display Widgets] V1.22 not workingDisplay widget 1.2.4 works with WP 3.5.1 and WPML 2.6.3, thanks sswells!
Forum: Plugins
In reply to: [Display Widgets] [Plugin: Display Widgets] V1.22 not workingSame here, Display Widgets v1.22 does not work for me.
I have version WordPress 3.3.1 installed, I use WPML and I have a modified version of theme Twenty Eleven.
Everything was working fine with Display widget 1.21. But when I installed v1.22, all my widgets were gone (not displaying on my website).
I’ve replaced the v1.22 display-widgets.php file with the v1.21 file.
My widgets are back, but some are displayed on the wrong pages.. grrrrr.
Someone else has that problem?
Thanks
ChristianI now understant hy this didn’t work:
if (get_post_meta($post->ID,'_wp_page_template', true) == 'mbizpa.php') { add_action( 'admin_init', 'myplugin_add_custom_box', 1 ); add_action( 'save_post', 'myplugin_save_postdata' ); }
$post->ID is not set to any value.
I think i’ve found my solution here:
https://www.farinspace.com/page-specific-wordpress-meta-box/
Instead of doing a get_post_meta to get the post ID, I can get it with the following code:
$post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ;
But, I still don’t understand why $post->ID doesn’t give me anything at the begining of my plugin, but later in the same plugin, I use it to display, and it works perfectly.
Thanks again.
Christian