emaildano
Forum Replies Created
-
Forum: Plugins
In reply to: [BigCommerce For WordPress] Static sitesHey @unfamous! We’ve talked to the wonderful team over at BigCommerce and in theory this should work on Shifter. We have not tested it out yet but if you’d like we can help you with that process.
Reach out on our chat anytime and we’ll be happy to assist. We offer a free trial for testing plugins like this too.
Forum: Plugins
In reply to: [Xo for Angular] Regular environment doesn’t workHey @signale!
Please direct message us on the Shifter support chat and we’ll help you sort it out.
In the meantime we’ll test this on Shifter too.
Forum: Plugins
In reply to: [Redirection] Programmatically Export RedirectsPerfect, thank you!
Forum: Plugins
In reply to: [Redirection] Programmatically Export RedirectsThe closest thing I could find was this but not sure how to use it.
`
$redirects = new Redirection_Api_Export();
$redirects->route_export();
`Forum: Plugins
In reply to: [Redirection] Only exact match works?Hey @uds, I believe that would be a Regex (wildcard) redirect.
Here are some docs on that: https://redirection.me/support/redirect-regular-expressions/
You’ll need to enable the regex option for that redirect and use one of the examples from that doc that best matches your redirect.
Related: https://ww.wp.xz.cn/support/topic/redirect-url-with-query-string-2/
Forum: Plugins
In reply to: [Redirection] The plugin does not workGreat! We also published a post on the topic here: https://www.getshifter.io/redirection-wordpress-plugin-shifter/
And the add-on plugin I’m developing is located here: https://github.com/getshifter/wp-serverless-redirects
Note! That plugin is not production ready but should be out very soon. 🙂
Forum: Plugins
In reply to: [Redirection] The plugin does not workHey @minhson65 and @johnny5!
My name is Daniel, I’m part of the team that works on Shifter. As John mentioned, Shifter is a static site generator and hosting service for WordPress. To add, Shifter does support the Redirection WordPress Plugin but not 100% of its features yet. Specifically, we don’t support wildcard/regex redirects yet. You may have been testing for a feature we don’t support.
The Redirection WordPress plugin is actually the only redirect plugin we officially support at the moment because of how awesome it is and the community and support around it.
Despite the lack of Apache or NGINX running, we have found a way to get Redirection working on a completely static-serverless environment.
Here’s the official doc we have on Redirection support while using Shifter.
I’ll drop a link in this thread for our add-on Plugin when that’s available for anyone who wants to use it. It’ll be open source and free to use.
@minhson65 if you have questions about how to use it on Shifter feel free to contact us through the Dashboard chat or support page.
Thanks!
Here’s an update of the version that I’ve decided to use.
I typically try to avoid
do_shortcodefor reasons explained here: http://kovshenin.com/2013/dont-do_shortcode/So I rewrote @shinichin’s function to use @tobiasbg’s recommended template tag.
The code below includes my ACF post object field but this can be used without as-well.
Hope it helps!
With ACF Post Object:
<?php // Init Post Object $postobject = get_sub_field('table'); $post = $postobject; setup_postdata( $post ); // tablepress plugin query / args // get ACF saved data. $post_obj = get_sub_field( 'table' ); // get the post-table pair json data $table_json = get_option( 'tablepress_tables' ); // json decode to array $json_dec = json_decode( $table_json, true ); // get the pair data $post_table = $json_dec['table_post']; // flip the key/value of the array $flip = array_flip( $post_table ); // table args $args = array( 'id' => $flip[$post_obj->ID], 'use_datatables' => true, 'print_name' => false ); tablepress_print_table( $args); ?> <?php // Reset data from Post Object wp_reset_postdata(); ?>Without ACF Post Object:
<?php // tablepress plugin query / args // get ACF saved data. $post_obj = get_sub_field( 'table' ); // get the post-table pair json data $table_json = get_option( 'tablepress_tables' ); // json decode to array $json_dec = json_decode( $table_json, true ); // get the pair data $post_table = $json_dec['table_post']; // flip the key/value of the array $flip = array_flip( $post_table ); // table args $args = array( 'id' => $flip[$post_obj->ID], 'use_datatables' => true, 'print_name' => false ); tablepress_print_table( $args); ?>@shinichin, thanks for the snippet!
@tobiasbg, awesome plugin! Just rated it 5 starts.
Forum: Fixing WordPress
In reply to: Database ErrorsI found a solution.
This WordPress database repair didn’t work: http://codex.ww.wp.xz.cn/Editing_wp-config.php#Automatic_Database_Optimizing
But I did have luck repairing the database via phpMyAdmin: http://php.about.com/od/mysqladministration/qt/repair_mysql.htm
Hope that helps!
Forum: Fixing WordPress
In reply to: Special Characters Appear as Diamond Question MarksFound my answer in adjusting the charset.
define('DB_CHARSET', 'utf8');Among other issues, I moved the site to a new server and this solved all of the issues including this one.
Forum: Themes and Templates
In reply to: Tax and Term Conditional StatementUpdate
Just tried this and it works:
<?php if ( is_single( 'University City' ) ) { echo 'University City'; } else { echo 'Not University City'; } ?>This will do for now, but I’d like to get my first question sorted out.
Thanks!
Forum: Themes and Templates
In reply to: Tax and Term Conditional StatementAlso, I’ve tried the term slug ( ‘university-city’ ) with no success.
Forum: Plugins
In reply to: [Twitter Widget Pro] Authorization Alert Will Not Go Away@ Eddu73 and bmanion, thanks for clearing that up!
@aaron D. Campbell, maybe in the next update you could include a start–up / walk through guide? I ran through the readme / instrux and still hit this snag.
Love the plugin btw.