ChrisCree
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Displaying Multiple ConnectionsHeya Johns! I know it’s been a while. But in the off chance that you check back here, this is what I have:
$page = get_query_var('paged'); // Display Company News $connected_type = array( 'company_to_news', 'company_to_post', 'company_to_research', 'company_to_commentary', 'company_to_video', ); $connected_company = new WP_Query( array( 'posts_per_page' => 7, 'nopaging' => true, 'paged' => $page, 'connected_type' => $connected_type, 'connected_items' => get_queried_object_id(), 'post_type' => array( 'post', 'news', 'research', 'commentary', 'video' ), ) );
Hopefully that helps you some.
Forum: Plugins
In reply to: [Posts 2 Posts] Displaying Multiple ConnectionsThat didn’t do it. But adding
'post_type' => array( 'post', 'news', 'research', 'commentary', 'video' ),
did!I assumed that adding ‘post_type’ to the query would conflict with the ‘connected_type’.
Thanks so much for your help, Scribu!!!
Forum: Plugins
In reply to: [Posts 2 Posts] Displaying Multiple ConnectionsI’m using it in the single-company.php template file. So doesn’t that mean that
get_queried_object_id()
should return a company post?When I use the array of connections it just shows the built in WP post post type. It does the same thing if I try
get_queried_object()
too.What I’m trying to achieve is one list that includes all the various post types that are connected to a single company sorted by date (DESC) in the single company post template.
Is there a way to do this with P2P? Am I trying to go about it the wrong way?
I feel like I’m missing something painfully obvious here.
Forum: Plugins
In reply to: [Genesis Featured Widget Amplified] Post Info places " from shortcodeI just ran into the same issue with the widget messing up when there are quotes in the shortcode. It really jacks up dates when you try to add a custom format with quotes around it.
Comparing it to the featured widgets that come with Genesis I see the problem is an extra esc_html in the do_shortcode function with this plugin.
In the plugin folder, if you open widget.php you can make 2 edits to fix your problem. The first is in line 1122. Change this:
printf( '<p class="byline post-info">%s</p>', do_shortcode( esc_html( $instance['post_info'] ) ) );
to this instead:
printf( '<p class="byline post-info">%s</p>', do_shortcode( $instance['post_info'] ) );
Then in line 1159 change this:
printf( '<p class="post-meta">%s</p>', do_shortcode( esc_html( $instance['post_meta'] ) ) );
to this instead:
printf( '<p class="post-meta">%s</p>', do_shortcode( $instance['post_meta'] ) );
Hopefully Nick will see this and incorporate it into his plugin so it will start handling the shortcodes properly.
I had to roll back to version 4.2.8 on my Multisite install to get this “string offset” error to go away so my clients could access their Google Analytics settings pages.
Forum: Plugins
In reply to: [AgentPress Listings] Shortcode Mod to Hide Empty FieldsGot distracted by Christmas. Just sent it on to you.
Had the same problem. In my case it is a conflict with W3 Total Cache somehow.
I’m done with Jetpack too. Don’t need all the code bloat for a couple of nice to have features.
Really appreciate that Automattic is offering many of their WP.com features to the rest of us. But the whole “one plugin to rule them all” concept isn’t working for me. Would prefer features broken down to separate plugins so we could just install the ones we need/like.
Had this same problem. In my case it was a conflict between Jetpack and W3 Total Cache.
To get access to your dashboard back use your FTP client to get to your site. Go to /wp-content/plugins/jetpack/ and change the name of the folder to something like /jetpack-temp/
Then you will have to go through trial and error to see which plugin Jetpack is conflicting with. Be sure to change the folder name back to /jetpack/ before you activate that plugin again.
If I have to choose between Jetpack and 3TC I’ll be kicking Jetpack to the curb.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Clean header vs Secure WordPressWordPress adds link meta tags to the header for various reasons. For example it adds a shortlink meta tag to make it accessable for some retweeting plugins and whatnot that looks like this:
<link rel='shortlink' href='https://cree.me/SngEHG' />
These links various links have potential SEO implications so Yoast’s plugin gives us the option to disable some or all of them.
You can Google each of the other links to find out what they all are there for and decide whether you need them or not. Personally I just leave all these unchecked in most cases.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Yoast IssueHave your other Admin go to edit a post and then click on the “Screen Options” dropdown in the extreme upper right of the edit screen right below where it says, “Howdy Username”. Have him make sure the “WordPress SEO by Yoast” option is checked so that the meta box will show.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Bug in panel admin §You set which columns show by using the “Screen Options” pull down tab in the extreme upper right below where it says “Howdy, ash444b” on the page/post lists screen. Just deselect the check boxes for the columns you don’t want to show in your list.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] 1.2.8.1 breaks admin@theappwhisperer the simple way to disable the plugin is to access your /wp-content/plugins/ directory via FTP or your hosting cPanel’s File Manager and change the name of the /wordpress-seo/ folder to something else like /wordpress-seo-old/
Doing so will disable the plugin so you can access everything else in your WP dashboard.
It would totally help if I matched up my parenthesis. My bad. Correct code is:
if ( (is_super_admin()) || current_user_can('manage_options') ) return;
Forum: Plugins
In reply to: [WordPress HTTPS (SSL)] [Plugin: WordPress HTTPS (SSL)] Bogus warningMark, Something is misconfigured because your checkout page is being served as https:// instead of https:// which means it isn’t a secure page. That’s why you are getting the error.
Forum: Plugins
In reply to: [Digg Digg] [Plugin: Digg Digg] Url Shortener doesn't WorkIt should be pretty straight forward to have the plugin pull the short link if it’s available.
It’s formatted like this in the source code:
<link rel='shortlink' href='#' />
The shortlink WordPress function is wp_get_shortlink.