Skip to content

Instantly share code, notes, and snippets.

View Dapo-Obembe's full-sized avatar
🏠
Working from home

Dapo Obembe Dapo-Obembe

🏠
Working from home
View GitHub Profile
@Dapo-Obembe
Dapo-Obembe / gist:e4d821bc5952139e2d650541debb2669
Created February 22, 2023 12:44
Redirect WordPress Page to Another Page Without Plugin
IF you want to learn how to redirect a WordPress page to another page or WordPress 404 page to another page WITHOUT PLUGIN, you are in the right place.
Read the detailed article here: https://www.alphawebtips.com/how-to-redirect-wordpress-page-to-another-page-without-plugin/
##SEE Code below:
//TEMPLATE REDIRECT
function redirect_to_page() {
if(is_page('PAGE ID HERE')) {
wp_redirect(site_url('URL-HERE'));
@Dapo-Obembe
Dapo-Obembe / All In One SEO Bundle for Blogspot
Created May 8, 2023 16:06
Code for the ALL-IN-ONE SEO BUNDLE for Blogspot.
<!-- All In One SEO Bundle By: https://www.alphawebtips.com Start -->
<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title><data:blog.pageName/> – <data:blog.title/></title>
</b:if>
<b:if cond='data:blog.metaDescription != ""'>
<meta expr:content='data:blog.metaDescription' name='description'/>
</b:if>