philipbeel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Added New Page and Now Defaulting As Home PageI looked into this further. I don’t think this is a wordpress bug so much as an issue in the Redirection plugin I was using. Seems like since I installed it every new page I create redeirects the homepage to this page. I will raise a it on the authors site.
Forum: Fixing WordPress
In reply to: Added New Page and Now Defaulting As Home PageI have the same issue as @dcfemella. seems to have only happened on one page and it only seems to be an issue when I am logged in. I have tried everything to remove it and nothing seems to have done the trick. I will delve into the DB table and try to remove it that way, must be some speradic wp bug as this is the first time I have seen it.
Forum: Fixing WordPress
In reply to: Navigation page linksHey. I had the same issue. Basically the pagenavi plugin wants a GET paramater to tell it what page you are currently on. Permalinks screw with this so we have to manually enter it.
say for your URL looks like this: https://example.com/films/page/3/
we need to pass in the page number /3/ into the query_posts(); we can get this out with this PHP function like so:
function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") { $pageURL .= "s"; } $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } $urlEnd = substr($pageURL, -3); $page = str_replace("/", "", $urlEnd); return $page; } //add in the catagory and page number query_posts('cat=7,8,12,13,15&paged='.curPageURL());
The query_posts() function can then have the &paged paramater passed directly into it dynamically using this funciton.
Hope this solves your problem!