Forums Forums Search Search Results for 'yoast'

Viewing 10 results - 61 through 70 (of 70 total)
  • Author
    Search Results
  • #40606

    Trevor
    Participant

    Hi

    Are you using the Enable Auto Count option on the General Settings Tab?

    1 and 2 are functions of the theme you are using I think. 1 can sometimes be modified with a setting in Yoast SEO if you have that installed.

    #30910

    Anonymous
    Inactive

    Hi,

    I’m using “Search & Filter Pro” on my website Home Page (with a shortcode) and on my search.php template. And I’m very happy with it !

    I noticed a little compatibility problem with SEO plugins like “WordPress SEO” from Yoast.

    “Wordppress SEO” from Yoast automatically adds canonical tags on paginated pages like this :

    <link rel="prev" href="http://mydomain.com/page/1" />
    <link rel="next" href="http://mydomain.com/page/3" />

    or that

    <link rel="prev" href="http://mydomain.com/search/page/1" />
    <link rel="next" href="http://mydomain.com/search/page/3" />

    But these URL send 404 errors because “Search & Filter Pro” doesn’t use the default WordPress pagination.

    I tried unsuccessfully to use the “WordPress SEO” filters (wpseo_prev_rel_link & wpseo_next_rel_link) to customize these canonical URLs to look like this:

    <link rel="prev" href="http://mydomain.com/?sf_paged=1" />
    <link rel="next" href="http://mydomain.com/?sf_paged=3" />

    and

    <link rel="prev" href="http://mydomain.com/search/?sf_paged=1" />
    <link rel="next" href="http://mydomain.com/search/?sf_paged=3" />

    For now, I’m using a function to prevent addition of prev/next rel link by WordPress SEO (https://gist.github.com/tacoverdo/7102453) but it would be nice to work it out ! 😉

    Do you have a fix for that ?

    Thank you.

    #30480

    Ross
    Keymaster

    Hey John

    I want to add this in natively to the plugin, however that is a little way away yet.

    However, it is still possible provided you are happy manipulating search data and wordpress filters for things like page title.

    This class will allow you to retrieve all the data you need:

    http://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/

    Which means you can insert this into your page titles dynamically. I think you will need to use the WP Filter to modify page title though – wp_title (if you are using the YOAST plugin, it might be wpseo_title)

    Thanks


    Anonymous
    Inactive

    Hi There,

    Thanks for your great plugin, it has really saved me alot of hassle and well with the money. But i am getting this error, it seems to be happening when i have SEO Yoast happening.

    http://testing.smart-learning.co.uk/science/

    It is not happening on my local site.


    Anonymous
    Inactive

    Hi,

    I loaded the new version yesterday but have had to revert to 1.4.3 because some of my custom functions are not working correctly with 2.0.1

    I am currently using this code in 1.4.3 to recall the form ID after my ajax page refresh…

    if (class_exists('Search_Filter')){
    	global $sf_form_data;
    	wp_localize_script('djax_init', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => $sf_form_data->get_active_form_id() ));
    	}

    BUT in 2.0.1 it does not work and I can’t figure out what I need to change apart from the global var ($searchandfilter). I get an error regarding the get_active_form_id() so obviously something has changed in the new version.

    Also the code which names the search page is incorrect too….

    /***SEARCH & FILTER PRO FUNCTIONS***/
    if (class_exists('Search_Filter')){
    	
    //wp_enqueue_script( 'search-filter-plugin-build' );
    //wp_enqueue_script( 'search-filter-chosen-script' );
    
    // Search Page Title - Yoast SEO friendly :-)
    function search_meta_title($data){
    global $sf_form_data;
    if ( $sf_form_data->is_valid_form() )
    {
    return 'Search Results';
    }
    else
    {
    return $data;
    }
    }
    add_filter('wpseo_title','search_meta_title');
    add_filter('wp_title','search_meta_title');

    Can anyone help me update my functions?


    Anonymous
    Inactive

    Hi! I go the paid version. The plugin is really great.

    I get undesirable titles and descriptions for the filter results. I’ve set “As an Archive Page” to display the results.

    I need a snippet to insert on the functions.php file. Yoast by SEO doesn’t seem to display an option to modify the title in the “archives” section. I only see “Author Archives” and “Date Archives”

    The reason I need an snippet is because I’m building a website in headway themes. They don’t use files for the templates. Everything under the Headway system in the database.

    I hope you can help. Thank you very much.

    #11539

    Ross
    Keymaster

    I just did a quick google – I hope you’ve found these – https://yoast.com/wordpress/plugins/seo/api/ – there is a title filter there (wpseo_title) – but it may be the equivalent of the one I’ve pasted above :/

    #10810

    Ross
    Keymaster

    Hey Celeste

    So we could do something similar to before – this link mentions how to update the page title:

    http://wordpress.stackexchange.com/questions/33101/how-do-i-set-the-page-title-dynamically

    add_filter('the_title','some_callback');
    function some_callback($data){
        global $post;
        // where $data would be string(#) "current title"
        // Example:
        // (you would want to change $post->ID to however you are getting the book order #,
        // but you can see how it works this way with global $post;)
        return 'My Search Results';
    }

    And this (untested) would be a way to to update only for Search & Filter results:

    add_filter('the_title','some_callback');
    function some_callback($data){
        global $post;
        // where $data would be string(#) "current title"
        // Example:
        // (you would want to change $post->ID to however you are getting the book order #,
        // but you can see how it works this way with global $post;)
        if ( $sf_form_data->is_valid_form() )
        {
            return 'My Search Results';
        }
        else
        {
            return $data;
        }
    }

    Again, it should work on a normal setup, but YOAST might overwrite that, if thats the case I would look in to setting it at a lower priority.

    Thanks

    #10787

    Anonymous
    Inactive

    Hello.

    The title on my search results page is displaying as Blog (the title tag, not the h1 page title). I am using WordPress SEO by Yoast which rewrites Titles & Meta. I assume it doesn’t recognize the slug (product-search) and is assigning the generic Blog title to this archive.

    Do you know any way to force a different title tag on the search results page? Or is this a problem for WordPress SEO?

    Thanks for your help,
    Celeste

    #8415

    Anonymous
    Inactive

    Okay, your suggestion sort of worked… though it set ALL pages to think it they were a search 🙂

    So I adapted to…

    		if(isset($wp_query->query['sfid']))
    		{
    				$query->is_search = true;
    		}	

    … which sets the search and the appropriate body classes etc so all my layout is correct.

    It didn’t solve the meta Title issue, so I went back to first principles and deactivated all my other plugins, and the Title issue appears to be related to WordPress SEO (Yoast). For some reason it thinks the S&F search results pages is a blog page (not even a search page – as I tried adapting the search meta Title via that plugin and it was ignored).

    Not sure there’s anything you can do about that, so I guess this is just a flag to be aware of that.

    So only S&F issue now is when in AJAX mode the results count doesn’t update… but if I revert to non-AJAX this isn’t a problem so I’ll probably do that, so again just consider that a flag.

    Thanks for all your help on this.

    Cheers
    John

    PS – So you know – the custom template entry was saving okay.
    PPS – When you said the ‘right way would be to modify the template’ what did you mean for future reference?

Viewing 10 results - 61 through 70 (of 70 total)