speedyp
Forum Replies Created
-
Forum: Plugins
In reply to: [Adminimize] "invalid post type" error with dropdown menu?Delighted to send you anything that might help, or just give you site access if that’s easier – how could we do that in a non public way??
CheersForum: Plugins
In reply to: [Adminimize] "invalid post type" error with dropdown menu?Here’s a debug list generated when trying to create a new post from my dropdown menu. I’m surprised at the number of errors as everything normally works very well. Maybe it will give you a clue where the problem lies?
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/speedyp/public_html/wp-includes/functions.php on line 2758
Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/speedyp/public_html/wp-includes/functions.php on line 2758
Notice: Undefined variable: my_menu in /home/speedyp/public_html/wp-content/themes/solution/includes/core-additions.php on line 68
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1494
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1495
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1506
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1507
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1522
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1523
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1538
Notice: Use of undefined constant THEMENAME – assumed ‘THEMENAME’ in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/theme-options.php on line 1539
Notice: Undefined index: action in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/ttpanel.php on line 46
Notice: Undefined index: action in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/ttpanel.php on line 53
Notice: Trying to get property of non-object in /home/speedyp/public_html/wp-admin/includes/template.php on line 871
Notice: Trying to get property of non-object in /home/speedyp/public_html/wp-admin/includes/template.php on line 871
Notice: Undefined index: page in /home/speedyp/public_html/wp-content/themes/solution/admin/ttpanel/ttpanel.php on line 9
Invalid post type
Forum: Plugins
In reply to: [Adminimize] "invalid post type" error with dropdown menu?Hey Frank – the error message is simply “invalid post type”. It appears in a small white box, but I’m not familiar enough with wp or php to say what is generating the message.
I just started trying debug mode for first time & I’m scared :O
Really hope we can get this sorted – I’ve put a ton of work into this & am depending on your plugin to make life simple for my multisite users. I’ll get back to you if I can find any more info
ThanksForum: Plugins
In reply to: [Adminimize] "invalid post type" error with dropdown menu?UPDATE / MORE INFO. On further investigation, I changed a bit of my code towards the end from hidden to text. This reveals an input field that is usually hidden and automatically filled with the post type “post”. The adminimize plugin appears to prevent this from happening, even though I have not set it to hide anything? All settings are unchecked..
<input type=”text” name=”post_type” value=”{$post_type}” />
Any ideas on this?
Well this sort of works, but it just gets the first number in the price
eg. 32.00 shows as 3 in the checkout?‘<?php
$productid = get_the_title();
$price = get_field(‘price’);
echo print_wp_cart_button_for_product(“$productid”, “$price”); ?>’Just stumbled across this post – it’s exactly what I’m trying to do: tie a couple of custom fields into the add to cart button.
I have very little experience with these things, but so far I’ve used the Advanced Custom Fields plugin to generate price and product description.
I love the way you are getting the product title from the post title, but could really use some help with adding the price bit please.
I can get the price with acf by using:'<?php the_field(‘price’); ?>’
But I need help adapting your code to use this??Thanks
Forum: Networking WordPress
In reply to: Need help with custom fields🙂
Forum: Networking WordPress
In reply to: Need help with custom fieldsBit of a breakthrough (I think).
1. Created a field group with 1 field (price) as text input & saved
2. Selected create php option in settings & added code to functions.php
3. Added ‘<h1><?php the_field(‘price’); ?></h1>’ to my post templateEnded up with 2 price fields! But at least saving the post didn’t crash. Deleted the original field I created to remove the second price entry & it seems to be working………..
Forum: Networking WordPress
In reply to: Need help with custom fields…….. good grief! Way out of my depth here.
Thought it would be easy to add a “price” field to my posts, but maybe not.
Probably going to have to stick with my original option of woocommerce or marketpress.
But thanks for trying to help 🙂
Cheers
Forum: Networking WordPress
In reply to: Need help with custom fieldstaking a look now………….
Forum: Networking WordPress
In reply to: Need help with custom fieldsHey Robin
Had another go, re-installed ACF but same error,
‘Fatal error: Call to a member function update_value() on a non-object in /homepages/44/d424921357/htdocs/wp-content/plugins/advanced-custom-fields/acf.php on line 721’and it doesn’t seem to have the file you indicated earlier?
“Open file – plugins\advanced-custom-fields\core\actions\input_save.php”
Maybe that’s the problem? Just installed it through the wp dash.
Forum: Networking WordPress
In reply to: Need help with custom fieldsHadn’t seen that Robin – I’ll give it a try, but it will have to wait a bit
Thanks
Forum: Networking WordPress
In reply to: Need help with custom fieldsThanks Robin.
Yeah, I tried ACF first. Followed all the info I could find, created a new field group but wp threw an error for the plugin when trying to publish new posts. Fixed that by registering the new fields in the functions.php. Also created a custom post type and added the php ACF suggested. But the common problem I seem to have is any value you add to a custom field just disappears when saving or publishing a post, and never shows on the post, unless I’ve set a default value for it.
Must be something basic I’m just not getting.
Forum: Networking WordPress
In reply to: Changing themes / losing widgets?My mistake. I’d given both versions of the template the same name in the actual template, but saved them with different names to help identify them. Renamed them & everything’s fine 🙂
Forum: Networking WordPress
In reply to: Changing themes / losing widgets?Turning into a bit of a nightmare this one..
The widgets I was using were to insert some php into a static page which is included on all new sites.
I managed to do away with the need for the widgets by creating a new page template for this static page and added it to both my themes. But whenever you change themes, the template returns to the default template.
Any way around that????