dashaluna
Forum Replies Created
-
Oh I just noticed you posted a message on the forum too. Ok, mine is this one.
Hopefully they will change the filter name..
Hey Andrew, thanks for letting me know I will post it on their plugin’s page.
Ok, I figured out how to remove
wp_title
filter that WordPress SEO adds. Add this code to thefunctions.php
:global $wpseo_front; if(isset($wpseo_front)){ remove_filter('wp_title', array($wpseo_front, 'title')); }
Hope that helps someone too.
@superfastcars thanks for the reply. I do have my own code in the header:
<title> <?php //print the <title> tag based on what is being viewed global $page, $paged; wp_title('|', true, 'right'); //add a page number if necessary if(($paged >= 2 || $page >= 2) && !is_single()){ echo sprintf('Page %s', max($paged, $page)) . ' | '; } //add the site's name bloginfo('name', 'display'); ?> </title>
So when plugin is inactive, I’ve got nicely looking titles constructed from my code, for example:
Category Name | Page num | Blog name
.When I activate a plugin, but don’t have any settings for the Titles at all.. it messes with wp_title output with its own default setup, so now my title becomes:
Category Name | Page num/Page total | Blog name Page num | Blog name
. Where the lastPage num | Blog name
is coming from my code.I just want to tweak it so that if there aren’t any settings in the Titles section of the SEO plygin, it won’t insert it’s own default titles.
Does that make sense?
Thanks.
Thanks for letting me know!
Would be nice to know any updates on it.@scribu, thank you for the reply.
So, now I’ve got the following:
new WP_Query(array( 'post_type' => 'fsd-slider', 'order' => 'ASC', 'orderby' => 'menu_order', 'posts_per_page' => -1, 'connected_type' => 'slider_to_case_study', 'connected_items' => 'any' ); );
However, I think this results in incorrect query being generated:
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND YEAR(wp_posts.post_date)='2525' AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.menu_order, wp_posts.post_date DESC LIMIT 0, 10
There shouldn’t be a
LIMIT
asposts_per_page
is set too -1. Also, theyear
parameter suddenly appears.Any ideas what might be going wrong?
Thanks in advance.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] restrict the relation to one-to-manyThanks! Looks like it’s working with 1.1.3
Forum: Plugins
In reply to: [Magic Fields 2] [Plugin: Magic Fields 2] Thumbnail feature is not working?I have the same issue… and noticed it a while ago. I was hoping it would be fixed by now. Any update on this?
Many thanks.
DashaThanks Matt,
Any advice how to correctly include plugin’s css and js only on specific pages myself?
I know how to queue css and js for specific pages – using the
wp_enqueue_style
andwp_enqueue_script
.. however, I’m not sure what exactly files to include.I would really appreciate any tips!
Many thanks,
Dashaambrosite, yes it’s better to stick to WP terminology!
Big bold notice sounds good!Thanks for the great plugins ??
Dasha
My apologies… I ended up with the page-link-plus plugin instead of the post-link-plus one :S Very confusing, not sure how that happened!
Dasha
Forum: Fixing WordPress
In reply to: Submit for review after publishedHello,
I’m after the same functionality. Have you found anything on that?
Many thanks.Hey Johan,
Thanks for letting me know. Yes, that functionality would be really really helpful ??
Keep me updated on it.
Thanks,
DashaForum: Fixing WordPress
In reply to: Attachment URL not workingI’ve found this link: https://mondaybynoon.com/wordpress-attachments/
Use
$attachments = attachments_get_attachments();
to get all attachments of a post/page.One thing that I’m a bit confused about is why attachments relationships don’t appear in the wp_posts table like WP naive ones do. Is that the reason for it? I thought that the
Make WordPress-level attachment relationships
setting is specifically for that reason – to add attachment relationships to the wp_posts table.Would appreciate if someone can explain ??
Thanks,
Dasha