pnsfakos
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] Permalink – Cant find right regexFound solution playing little with PHP.
Puting the following code to functions.php you get redirection from /%postname%/%post_id%/ to /%category%/%postname%/%post_id%/
add_action( 'parse_request', 'maybe_redirect_old_permalinks' ); function maybe_redirect_old_permalinks( $wp ) { if ( preg_match( '#^([^/]+)/(\d+)$#', $wp->request, $matches ) ) { list ( $path, $slug, $id ) = $matches; // Redirect to the new permalink, if the slug and ID match. if ( $slug === get_post_field( 'post_name', $id ) ) { wp_redirect( get_permalink( $id ), 301 ); exit; } } }
Forum: Plugins
In reply to: [Redirection] Permalink – Cant find right regexThanks John!
I try the beta permalink migration but nothing changed!
I gave this /%postname%/%post_id%/ on the field and then click save!
I clear the cache also not working on any URL still getting 404 error.
Also i have a problem with permanlinks. Also shows as ?p=[POST ID] that makes me 404 error. I want the full link
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] YoastSEO post analysis brokeAny news about the issue? If i rollback the yoast version will be ok until you fix the issue?
Forum: Plugins
In reply to: [AutoConvert Greeklish Permalinks] Πρ?βλημα με μετατροπ? παλι?ν linkΓια 2-3 μ?ρε? δεν χ?λασε και ο κ?σμο? μπορ? να περιμ?νω!!! ?ταν το ?χει? ?τοιμο στε?λε μου να το δοκιμ?σω!
Σε ευχαριστ? πολ? για την βο?θεια και την ?μεση ανταπ?κριση!!!
Forum: Plugins
In reply to: [AutoConvert Greeklish Permalinks] Πρ?βλημα με μετατροπ? παλι?ν link?χι δυστυχ?? δεν αλλ?ζει καν?να παλι? ?ρθρο. Μπορο?με με κ?ποια ?λλη πατ?ντα να κ?νουμε κ?τι?
Forum: Plugins
In reply to: [AutoConvert Greeklish Permalinks] Πρ?βλημα με μετατροπ? παλι?ν linkΕνεργοπο?ησα το debug στο config και το error που βγ?ζει ε?ναι αυτ?.
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/**********/*****.gr/wp-includes/taxonomy.php on line 1473
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] Custom Field in notificationHello,
I would like to know the same thing. I have the Custom Fields and i use it to put a second title to my site. How to change the default title with the code for Custom Field.
Thanks in advance!