jeanjeana
Forum Replies Created
-
Forum: Plugins
In reply to: [Facebook] Like Box widget and Send button showing up in CyrillicP.S. When I turn on the Facebook plugin, Firebug finds the following error:
SyntaxError: syntax error
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//Efrom line 1 of my header.
Lines 1 and 2 of my header are:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
I don’t know if this is related. The error disappears when I deactivate Facebook. Also, the site works fine except for the wrong-language buttons.
Forum: Plugins
In reply to: [Facebook] Like Box widget and Send button showing up in CyrillicThank you so much for your reply, Niall!
I looked for connect.facebook.net in the source and indeed found another reference. The relevant parts follow:
<link href="https://mysite.com/mysitefolder/wp-content/themes/arthemia/images/favicon.ico" rel="shortcut icon"> <link href="//connect.facebook.net" rel="dns-prefetch"> <link href="https://mysite.com/mysitefolder/xmlrpc.php?rsd" title="RSD" type="application/rsd+xml" rel="EditURI"> <link href="https://mysite.com/mysitefolder/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest"> <meta content="WordPress 3.4.2" name="generator"> <style type="text/css"> <meta content="Neighborhood School Parents' Association" property="og:site_name"> <meta content="website" property="og:type"> <meta content="hi_IN" property="og:locale"> <meta content="Neighborhood School Parents' Association" property="og:title"> <meta content="building strong families in the Bronx, NY" property="og:description"> <meta content="https://mysite.com/mysitefolder" property="og:url"> <script id="facebook-jssdk" async="" src="https://connect.facebook.net/hi_IN/all.js">
I turned off every plugin except for Facebook and Pixopoint Theme Integrator (without which my site crashes) and we still have the problem with the foreign locale– which briefly was the US again before it became Indonesia, where it is now stuck.
You can see in the following line that something is setting my locale and this is being reflected in the Facebook plugin. I am not sure what or why!
<meta content="hi_IN" property="og:locale">
Would very much appreciate any suggestions you have.
r.e. post categories, this is already possible, you just need to associate the post categories taxonomy with the event CPT.
I’m sorry– I don’t know how to do that. It appears that event categories are stored in the terms table alongside of regular post categories. But in my example above, 72 and 73 are the cat ids of event categories, but somehow they aren’t being filtered out– though 45, a regular post category, is being properly filtered.
To clarify: when I say that the above code doesn’t work, what happens is that none of my events show up when I use WP_Query.
However, if I use the following snippet (agelonwl’s plus category filter) with query_posts, my events show up, but I can’t hide any of them by category.
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && false == $query->query_vars['suppress_filters'] ) { $query->set( 'post_type', array( 'post', 'event' ) ); $query->set('category__not_in', array(45,72,73)); } return $query; }
Currently, my entire calendar posts on the blog, while I’d rather that event posts appear only a few at a time, as the date approaches. Even better, I’d like to be able to pick and choose which events show up on the front list, although the calendar should show all events. I thought I could do this by setting up an “Hidden” category and using Quick Edit to mark events as hidden or not.
I think I have the same problem. I have been using Arthemia, and have been able to get events to show up as posts, using agelonwl’s snippet… thank you!!
However, I have no success trying to filter by categories. I have tried the following to no avail.
<?php $the_query = new WP_Query( array ( 'post_type' => array( 'post, event'), 'category_name' => 'Headline', 'posts_per_page' => 2, 'category__not_in' => array(45,72,73)) ); ?> <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
Thank you for your reponse.
I uninstalled and reinstalled 7.2 and made the replacements you suggested. It didn’t work (and I tried it twice), so I am going to roll back to 7.0.1, which did work for me. I am using WP 3.2.1 and Arthemia, by the way. The problems I have been having since the reinstall are identical to the problems I had before the reinstall.
I’ll post back the results of rolling back.
Hmm, I can’t see any option to set personal settings to HTML or otherwise in Subscribe2->Your Subscriptions. I see only:
Receive periodic summaries of new posts?: Yes No
Do not send notifications for post made by these authors:??
Thanks–
I only have the regular version of Subscribe2. I clearly checked off plain text excerpts at the bottom of settings, and the first thing I did was try different options to see if that would fix it. Is there another setting that I’m missing?
After the adjustments I made, the email looks okay (including urls) as long as I configure my mail program to view it as plain text. However my subscribers will probably not know how to do this.
I’m still struggling with this issue, though I tried all the fixes mentioned here and on the other thread. I use Gmail and Thunderbird.
I also tried a workaround where I put in the template where I wanted newlines, and replaced every mention of
strip_tags($somestring)
withstrip_tags($somestring, '<p><a>')
. The messages are now readable but unfortunately, I still lose all my links.Could the have anything to do with the headers? Notice that back when messages were working under 7.0.1, headers used have
Content-Type: text/plain;
Now the headers are
Content-Type: text/html;
Since I just want to send text excerpts, I tried commenting out references to the html content-type but it didn’t work. Just thrashing around right now but I guess my subscribers can live without clickable links for a while.
//if ( $type == 'html' ) { // To send HTML mail, the Content-Type header must be set // $header['Content-Type'] = get_option('html_type') . "; charset=\"". get_option('blog_charset') . "\""; // } else { $header['Content-Type'] = "text/plain; charset=\"".get_option('blog_charset') . "\""; // }</a>