Wordpress Job Manager Pagination Issue - wordpress

I am using the Wordpress Jobs Manager plugin. It all works great except the pagination feature. When enabled, the pagination buttons just redirect the user to the homepage instead of to the paginated page of results. As far as i can tell this is a problem with permalinks but i wondered if anyone had a workaround as i cannot use the standard permalinks on my site.
Does anyone know of any possible fixes? Its a custom built theme.
Thanks for you help guys

I know its a long time since you posted, but i had this issue today and came across your post.
I did some investigating and found it to be a problem with the way wordpress was dealing with the rewrites for canonical redirects.
I did a search on the internet and found the following post on wordpress.stackexchange.com by Celine Garel which deals with this situation for custom post types, i just changed it to work with a page.
https://wordpress.stackexchange.com/questions/134339/pagination-on-custom-post-type-not-working-if-permalinks-set-to-rewrite-url
Add this to your themes function file,
add_filter( 'redirect_canonical','custom_disable_redirect_canonical' );
function custom_disable_redirect_canonical( $redirect_url ){
if ( is_page('Your_job_list_page') ) $redirect_url = false;
return $redirect_url;
}
This fixed it for me. Hope it helps you or anybody else.

Related

After migrating WP site from http to https Facebook Like Counts lost on several posts but not on all?

I have a weird problem.
Two weeks ago I migrated my Wordpress sites from http to https.
I used the Really Simple SSl plugin to get it all secure: https://wordpress.org/plugins/really-simple-ssl/
That worked great.
But after the migration I saw I lost all my FB like counts.
I found the solution I thought in this article: https://really-simple-ssl.com/knowledge-base/how-to-recover-facebook-likes-after-moving-to-httpsssl/
It is from the same author as the Really Simple SSL plugin.
I put the code in the functions.php from my theme. But soon I found out, that on some posts the counts were restored, but on other postst the counts are zero: https://www.tina-turner.nl/blog/page/11/
I have 3 websites and on 1 of them it works alright.
But on the other 2 sites I have the problem. I started with deactivating all plugins and also changed the theme, but that didn't solve the problem.
I searched the internet, but can't find a solution for this problem.
The one thing I didn't try yet is to buy the Really Simple Social plugin from this same author. He says maybe when I activate the og: url in that plugin it might work. https://really-simple-ssl.com/downloads/really-simple-ssl-social/
But first I am trying to achieve this without buying anything.
I tried some code.
The original code in the functions.php is this:
// Recover FB Counts
function rsssl_exclude_http_url($html) {
//replace the https url back to http
$html = str_replace('data-href="https://www.tina-turner.nl/blog', 'data-href="http://www.tina-turner.nl/blog', $html); return $html;
}
add_filter("rsssl_fixer_output","rsssl_exclude_http_url");
I tried to add some code for the og: url, but I am not good with code.
This is what I tried and that didn't work:
// Recover FB Counts
function rsssl_exclude_http_url($html) {
$html = preg_replace('~<meta property="og:url" content="https://~', '<meta property="og:url" content="http://', $html, 1);
$html = str_replace('data-href="https://www.tina-turner.nl/blog', 'data-href="http://www.tina-turner.nl/blog', $html);
return $html;
}
add_filter("rsssl_fixer_output","rsssl_exclude_http_url");
That filter is necessary, since the Really Simple SSl plugin sets everything from http to https.
Oh and to be complete, I use the Add to Any plugin for the FB Like button.
Can somebody help me with this?
Johanna

do shortcode not working for Advanced post slider

I've been stuck on this for a while. I'm working on a wordpress site.
I'm trying to use a Advanced post slider plugin, but calling it in a template via
echo do_shortcode('[advps-slideshow optset="1"]'); //just isn't working.
But it is working when directly pasted [advps-slideshow optset="1"] in wordpress page.
Any help would be greatly appreciated.
Advanced post slider looks to be working my end with the code you provided. What happens if you do <?php print_r(do_shortcode('[advps-slideshow optset="1"]')); ?> are you also getting any js errors in your console log?
the problem seems to be in the plugin itself, as I see no errors in the string you wrote. I think you should write the developers with this issue. you may suggest you another slider plugin with shortcodes for WP post galleries- freemake slider. on you blog it works well. the archive can be loaded from here http://www.freemake.com/free_wordpress_slider_plugin/

woocommerce pagination not working

On my locally hosted site is the woocommerce pagination not working properly.
When I use http://localhost/sample-post/ the second page is a wrong one. I'm landing on an attachment page instead of the second product page.
When using http://localhost/?p=123 it works ok.
Anyone an idea?
Is it because I'm working locally and will it not be on a remote server? I've read something about that. Need confirmation.
EDIT
Went worse.....
I have to translate the site in different languages using WPML. When using the default permalinks WPML complains. When using another structure (see above) and in WPML the setting for a different folder for each language I got pages with no result (except for a message from woocommerce that no products were found.
EDIT 2, February 18th, 2015
I start to wonder if it is even possible to set the WooCommerce shop page as the Front page. The support team of WooCommerce is puzzled as well and are wondering too if it is possible. I hope someone has experience with it or an example of a site on which it works.
Please, can anyone help me out here... I'm struggling now for a long time and I'm not able to solve this myself.
your permalinks settings need adjusting. in wp-admin go to settings>permalinks>common settings, and set "per post." check your product permalink base as well.
Please use this function for correct woocommerce pagination. please use this function inside the function.php
add_filter( 'woocommerce_pagination_args', 'rocket_woo_pagination' );
function rocket_woo_pagination( $args ) {
$args['prev_text'] = '<i class="fa fa-angle-left"></i>';
$args['next_text'] = '<i class="fa fa-angle-right"></i>';
return $args;
}

Wordpress: On specific url the admin toolbar shows up (Even when not logged in)

I'm running into a Major trouble.
Today I found out that when visiting a specific URL on my website, the admin toolbar shows up. Also for people who are not logged in. It appears that the visitor is logged in, but that's not true. All the links in the toolbar go to a 404 page. However, important information is being shown, like how many plugins need an update and even my login name.
Is anyone familiar with this?
Since it is a corporate website, I need a fix as soon as possible.
(due to security reasons I won't post the exact url in public)
Hopefully anyone can help me.
Thanks,
Stefan
Try to add either of these code in functions.php of your theme,
Code 1:
<?php
add_filter('show_admin_bar', '__return_false');
?>
Code 2:
function hide_admin_bar_from_front_end(){
remove_action( 'wp_head', '_admin_bar_bump_cb' );
return false;
}
add_filter( 'show_admin_bar', 'hide_admin_bar_from_front_end' );

Hide Wordpress dashboard?

I'm new to wordpress and a bit confused with something. I'm trying to build a classified marketplace type of website for myself. I am NOT building this for a "client". I will probably be using a hack of several different plugins as my coding skills are not up to par. Eventually I will hopefully have lots of users who will be composed of buyers & sellers.
My question pertains to the WP dashboard. When buyers/sellers sign up for my site, will they be able to see the backend WP dashboard? I would prefer that they NOT be able to access a backend dashboard at all let alone a WP branded one. Is this possible? If so any clue as to how this might be accomplished?
thank you Brian
Normal users do not actually see the 'backend' WP dashboard. What they are seeing is a 'profile' type page meant for the original functionality of wordpres; being a blog.
If you do not want users to go to this page when they log-in, you can use a couple of hooks. Here is some code that redirects to the front page after logging-in and logging-out. This goes in your functions.php file.
add_action('login_form', 'ang_redirect_to_front_page');
add_action('wp_logout', 'go_home');
function ang_redirect_to_front_page() {
global $redirect_to;
if (!isset($_GET['redirect_to'])) {
$redirect_to = get_option('siteurl');
}
}
function go_home(){
wp_redirect( home_url() );
exit();
}
And, if your theme is still displaying the menu at the top of the screen that allows the users to go to this 'profile' area, you can go into your footer.php file and remove this:
<?php wp_footer();?>
However, if you do this, then you will not see it as the admin either.
WordPress is might not be the thing to use for that kind of website, even with a bunch of plugins. Read up on other content management systems just incase.
This link might answer your question:
http://buddypress.org/support/topic/how-to-prevent-non-admins-from-accessing-wp-admin-dashboard/
You can also add this to your theme's function.php file:
// DISABLE ADMIN BAR FOR ALL USERS
show_admin_bar( false );
If you are not too used to wordpress, use WOOCOMMERCE plugin. Its completely free and well documented

Resources