Giovanni Putignano
Forum Replies Created
-
I just opened a support ticket.
I’ve added /agriturismo/%postname%.html as Rewrite Slug but it doesn’t work.
Forum: Fixing WordPress
In reply to: How to print rewrite rules?I found a solution, I don’t know if it is the best solution but it works.
I read directly from database using this line of code:$rewrite_rules = get_option( 'rewrite_rules' );and then I loop the array.
Forum: Fixing WordPress
In reply to: get_header() doesn't work with custom pagesWhat means “look very strange”? Please attach an image.
Forum: Fixing WordPress
In reply to: How to print rewrite rules?I tried first time on 3.9-beta3 version so I tried also on 3.8.1 version but I can’t see any rules also flushing rules.
Forum: Fixing WordPress
In reply to: How to print rewrite rules?Yes, I called it. This is the code:
add_action('admin_menu', 'gp_call_add_rewrite_page'); function gp_call_add_rewrite_page() { add_menu_page('Rewrite Page', 'Rewrite Page', 'manage_options', __FILE__, 'gp_add_rewrite_page', 'dashicons-edit'); } function gp_add_rewrite_page() { ?> <div class="wrap"> <h2>Rewrite Page</h2> <?php global $wp_rewrite; var_dump($wp_rewrite); ?> </div> <?php }I set permalinks to /%postname%.html in Settings > Permalinks
Now it works. Many thanks.
Forum: Fixing WordPress
In reply to: [Simple Facebook Connect] Translate simple-facebook-connect.potIt works! Many thanks.
Many thanks.
I better explain. I’ve integrated osCommerce and WordPress so I have in the same directory both osCommerce installation and wordpress installation. I renamed index.php to blog.php to not override index.php file of osComemrce installation.
See here.Ok, it could be better if I could rename the index.php file.
I renamed it because in the same directory I have already a file called index.php
Are you there? Can I post this as a bug?
If I move the index.php file OK, but if I rename index.php to blog.php doesn’t work right because blog.php become a directory so wordpress search for blog.php/index.php file. In fact when I try to rebuild permalink wordpress search for htaccess file in the directory called blog.php/.