nickstaroba
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable Pagination on Static Front PageSome more information just in case it’s helpful.
I’m running WordPress on IIS.
I set up an additional test site with no modifications and it does the same thing. The only real difference being that I installed WordPress in the root folder of the site rather than a sub-directory. (I thought this might be causing the problem…)
The test site is using Twenty Fourteen. The front page is set to the Sample Page from a fresh installation with the full width template. The posts page is set to a new page named Blog using the default template.
The permalinks are set to custom: /blog/%postname%/
Still getting root/page/2, root/page/3, etc.
Forum: Fixing WordPress
In reply to: Disable Pagination on Static Front PageThe theme is adapt:
https://www.wpexplorer.com/adapt-free-responsive-wordpress-theme/
But, the same things happens on Twenty Fourteen as well.
Forum: Plugins
In reply to: [WordPress Landing Pages] failed to open form.class.phpConfirmed. That specific error message is gone.
Forum: Plugins
In reply to: [Yoast SEO] Genesis Framework and WordPress SEOI’m pretty sure they work well together. Yoast has given Genesis five stars: https://yoast.com/review/genesis/
I’ll probably be using the combination in my next project.
Forum: Fixing WordPress
In reply to: Need Help With add_rewrite_rule RegexThanks essaysnark! While that wasn’t exactly what I needed, it led me to the answer.
I used this as a reference:
https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/And it got me this:
add_action( 'init', 'add_position_rules' ); function add_position_rules() { add_rewrite_rule( "^position/([0-9]+)/?$", "articles/wp-content/themes/adapt-child/position.php?position=$1", "top"); }
Just a couple changes to the regex and getting rid of $matches[1] did the trick.
Forum: Fixing WordPress
In reply to: Need Help With add_rewrite_rule RegexJust not getting this right now. Probably getting too late and I need to take a break from it…
Anyway, what I’m actually trying to do is create a pretty url that I can use to access data from a database separate from the WordPress database.
would rewrite to
https://website/articles/wp-content/themes/adapt-child/position.php?position=1234
Then I can take $_GET[‘position’] and query the other database and display the result…
Forum: Fixing WordPress
In reply to: Need Help With add_rewrite_rule Regexadd_action( 'init', 'add_position_rules' ); function add_position_rules() { add_rewrite_rule( "/position\/([0-9]{4}$)/", "articles/wp-content/themes/adapt-child/position.php?whatever=$matches[1]", "top"); }
This appears to be working but it’s just returning my template page at /position
It’s not returning the custom position.php file (it was with the earlier iteration but the regex wasn’t returning 1234)
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Redirect to a page after form succesfulThis is also not working for me. Any ideas?? It’s not syntax…