I get the following error when using the ajax action wpex_titles:
PHP Warning: Invalid argument supplied for foreach() in /website/wp-content/plugins/wp-experiments-free/wpex.class.php on line 247
In the following piece of code, the casting of $_POST[‘id’] as int in the foreach causes the issue:
public function ajax_titles()
{
$titles = array();
$images = array();
if (isset($_POST['id']))
{
$cur_page = isset($_POST['cur_id']) ? intval($_POST['cur_id']) : null;
foreach ((int)$_POST['id'] as $id) { // <====== this line is causing the issue
$images[$id] = array(
"old" => get_post_thumbnail_id($id)
);
$titles[$id] = $this->titles("", $id, true, $id == $cur_page);
// the titles() call will update a global variable which will
// effect the return result of get_post_thumbnail_id
$images[$id]["new"] = wp_get_attachment_url(get_post_thumbnail_id($id));
}
echo json_encode(array(
'images' => $images,
'titles' => $titles
));
die();
}
}
If you could fix it that would be awesome!
]]>The plugin is generating lots of errors in my 404 monitor as it is looking for this file:
wp-content/plugins/wp-experiments-free/js/jquery.cookie.js
that doesn’t seem to be part of the plugin code (anymore).
Could you please add that file back or if not needed remove the reference so the plugin stops generating lines in my 404 monitoring log file?
]]>Hello,
I’m using the latest version of Title Experiments (v 9.0) and I’m having a problem making it work properly with the Yoast SEO plugin.
Yoast’s plugin injects a JSON-LD Schema code automatically into every page, and in that code is the headline property that contains the title of the page.
However, things get messy when both plugins work simultaneously, and the headline attribute spits an HTML code instead of the title.
This creates a Schema error which typically looks like this:
"headline":"<span data-wpex-title-id='1364' style='min-height: 1em; display: inline-block;' data-original='VmVydCBTaG9jayBSZXZpZXcg4oCTIERvZXMgSXQgUmVhbGx5IFdvcms/IEZVTEwgUHJvZ3JhbSBCcmVha2Rvd24=' ></span>"
Here’s how a proper headline attribute should look like:
"headline":"This Is an Example Title"
And BTW, this only happens when manually specifying a title that is different from the H1. When H1 and Title are the same (title field in Yoast SEO left blank), everything works smoothly.
Any recommendation on how to fix this issue?
]]>Hello. Does this plugin have integration with Rest API?
]]>Hi,
How would this plugin work with W3 Total Cache in place, or any other caching really?
Maybe it could implement support for W3TC’s fragment caching?
Any other ideas?
Thanks.
]]>Hi,
Is this plugin compatible with woocommerce?
Thanks
]]>The reporting function on Title Experiments no longer works for me. I look at conversion rates on the post page itself because when I had Pro installed, it was extremely slow and destroyed my website’s speed and functionality. I uninstalled it and reverted to checking conversions on the titles themselves by mousing over the views/impressions indicator on each. Last week, the function stopped working. It showed no views and no conversion rates for titles on posts that had been up for hours – in essence, it wasn’t registering clicks or conversions at all. Now the plugin is essentially useless because it cannot provide reporting. It is updated to the latest version, as is my website.
]]>is it possible to use for custom post types?
]]>Hello there. I need a help here.
Sometimes after make changes to content and then save it, all title duplicate itself. Example: if I have 6 titles, I get 12 titles in the end. Is there any way to fix this?
Sorry for my english.
I have a page that generates html for a newsletter and it cannot have javascript on it. I have to use the javascript option for this plugin though as I have a caching plugin. When I open this page to generate content for the newsletter, some of the titles are blank. Is there a function to just display the primary title of a post and not attempt to run the experiments?
]]>Is there a way to manually refresh the post titles after new posts are loaded via ajax? They’re showing up blank when loaded in.
]]>I have been using this plugin for close to 6 months now. yesterday all of a sudden my site https://www.wiselywise.com went totally blank with only a error message “error connecting to site”. after 8 hours of working with my hosting provider, bluehost, the problem was narrowed down to this plugin. I like the A/B testing so far, could you check for compatibility issues with wordpress or elegant themes. I use Extra Theme.
]]>I want users to submit posts on the front end using Gravity Forms. But I also the posts to include multiple titles that will be split tested using Titles Experiments.
Is there anyway I can submit the alternate titles using Gravity Forms? Perhaps using custom fields that are passed into the post?
]]>If you have any questions, comments, or suggestions, you can get in touch through any of the methods below.
Support for Title Experiments Free is best done on the fourms.
We publish to WordPress from our print CMS via the REST API and a custom plugin that allows us to map fields. I’m interested to know if we can send title experiments this way and map the additional titles to WP-Experiments’ fields to automatically run experiments.
]]>First off, great plugin!
How is “success” determined? Is it by bounce ? (i.e. visitor stays X number of seconds or doesn’t bounce… etc…?)
]]>Hi there, I am using ‘Your latest posts’ at ‘Customize’ > ‘Front page displays’.
But at that situation, the title is controlled by ‘Setting’ > ‘General’ > ‘Site Title’
Is there a way that I can use this plugin while still showing ‘latest posts’ on homepage?
Or I’ve to make another page?
Title Experiments doesn’t play well with WP menus. Or I’ve done something wrong. Also very possible.
Here’s my menu setting. Despite declaring a name in the menu system, one of the experimental titles popped up in my frontend navigation.
I’ve temporarily deactivated the plugin, but I’d love to find a fix and reactivate it. Any suggestions?
]]>Hello! I am interested in taking this plugin for a test drive. I was just wondering if there were any issues in using it when a local caching plugin (like WP Rocket that I use) and/or a CDN like CloudFlare is in place?
Thank you for your time.
]]>Hi, I was wondering if you could tell me which option reduces server load, using Javascript or not. Or does it not make a difference? I’m currently at the limit of my hosting plan resource-wise so I’d like to select the most efficient option.
Also, what would you suggest as a recalculation time for a site that has about 2000 average sessions on daily basis. I currently have it at 2 hours.
Many thanks in advance for your help,
J.
]]>Does this require attention?
Notice: Undefined index: plugins
wp-content/plugins/title-experiments-pro/libs/wpph.php 1112
Hi,
there is no permalink option next to the “+ Add New Title”, it completely disappeared.
What should I do?
If I enter an extra title, every time I save the post, I get 34 empty lines extra. To enter a title test case, with an undefined NaN error behind them.
Any thoughts on this?
https://drive.google.com/file/d/0B79BYpPzYwIgTFV3eUstNlIxdWc/view?usp=sharing
]]>Hello!
Thank you for this great tool. It’s simple and useful at the same time.
Unfortunately i have a trouble. It seems it don’t work properly with cyrilic symbols. After activation the plugin cyrilic title just disappeared on the main page of the site.
Can you advice me what can i do to fix it?
Thank u!
Udp.: Fixed by clear “Use JavaScript” checkbox. Thx.
]]>While running a title test, the title is displayed properly everywhere except within the “JP – Recent Posts” widget. This widget is part of the Jupiter theme. If I refresh the page, the title within the widget will change instead of remaining constant and often does not match the title displayed for the single post page.
I have determined that the widget is using the the_title()
function to retrieve the title for each post in the list.
I’m using:
I’m using the following:
When running a test, the titles display properly everywhere except in the “JP – Recent Posts” widget area. I’m using this widget to display the recent posts from a category in the right rail widget area. The widget displays the alternate titles in a seemingly random fashion.
Does anyone know of a widget that will display the recent posts from a selected category and is compatible with the Title Experiments Free plugin (wp-experiments-free)?
Thanks.
]]>Hi Jason,
I’ve bought your premium version of the plugin and have some support questions.
I’ve emailed you twice in the last few weeks but no response.
Is this plugin dead or are you still supporting it?
If you are not providing support I would like a refund.
I look forward to hearing from you.
]]>Hello,
What might cause this?
[05-Jun-2015 23:28:46 UTC] PHP Warning: Division by zero in /home/soobabiz/public_html/wp-content/plugins/wp-experiments-free/wpex.class.php on line 402
]]>Hi,
I’m still totally in love with this plugin, one of my must have.
But today i got an error, i never see before.
Instead of my title i got the error :
<span style=’min-height: 1em; display: inline-block;’ data-wpex-title-id=’1378′ data-original=’RXRlcyB2b3VzIHZyYWltZW50IGluY29sbGFibGUgc3VyIGxhIHByb3RlY3Rpb24gYW5pbWFsZSBlbiBGcmFuY2UgPw==’ ></span>
I’m working with the lastest wordpress version.
can you help me with this please ?
Thanks in advance.
]]>After saving about 10 titles for my post i did some changes (not on the titles) on the content and saved it again. Each time i saved the page i got the same 10 titles again. So i ended up with 20 (duplicate) titles. After all i got about 40-50 titles (altough there were only 10 i originally wrote)!!
]]>