Git Product home page Git Product logo

Comments (16)

spencerfinnell avatar spencerfinnell commented on June 2, 2024

Apparently this is not fixed. http://support.astoundify.com/topic/company-name-not-appearing-in-title-on-company-pages/#post-19218

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

Closing as works for me.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

This is definitely not working for me, your demo page does not work correctly either: http://demo.astoundify.com/jobify/company/DropBox/ - is it possible to look into it a little further?

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

Sorry, our demo was using an old version. It works now using the latest version that is here on GitHub.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

Any hints or suggestions as to why it's not working for me?

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

Another plugin might be overwriting it. Are you using an SEO plugin?

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

Yes, Yoast - could that be the cause?

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

Yes it definitely could be. Try changing the 20 in this line to something high like 9999

https://github.com/Astoundify/wp-job-manager-companies/blob/master/wp-job-manager-companies.php#L83

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

Perfect, didn't think about the SEO plugin, I'll check it out. Thank you.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

Thanks again for the pointer - the issue is definitely caused by the Wordpress SEO plugin, when I deactivate it the title displays as intended. I tried increasing the priority, but it had no effect. The only way I can get it working correctley is to modify the code in header.php to something like this:

<title>
<?php 
    global $paged, $page;
    if (get_query_var('company')) {
        $company = urldecode( get_query_var( 'company' ) );
        $title = get_bloginfo( 'name' );
        $title = "$company | $title";
        echo $title;
    }
    else{
        echo wp_title( '|', true, 'right' );
    }
?>  
</title>

I would imagine there will be others using Wordpress SEO, so do you know of any other approach, or is the above the best solution?

Thanks.

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

I'll install the plugin and run some tests myself. Surely there has to be some priority where it won't override it.

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

If you uncheck "Force rewrite titles" in the Titles section of the settings does that mess anything else up for you? That seems to be what is causing it.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

I've unchecked it, doesn't appear to mess anything up, however the title is still not displaying on company page when that is unchecked. Is that in conjunction with changing the priority or anything else?

from wp-job-manager-companies.

spencerfinnell avatar spencerfinnell commented on June 2, 2024

It works for me with the priority set to 20. Yoast SEO filters it at a priority of 15 so I can't see why it wouldn't be working. It must be some other setting.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

For some reason it wants to set all of the company pages to the same thing as my homepage. I appreciate you looking into it, the hack above does the trick for now, I'll keep poking around in the Yoast setting to see if anything else may be set. Thanks again.

from wp-job-manager-companies.

hursey013 avatar hursey013 commented on June 2, 2024

Also, I'm not using a static front/post page, could that have something to do with it?

from wp-job-manager-companies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.