I'm still dealing with the Simple Blog plugin which is what I needed the most to be working well. My website is live already (nobody is visiting yet), is about Recipes, is in Spanish but my admin dashboard still in English since I'm bilingual. Anywho... I would love to have my "posts" url being like this:
"mywebsitename.com/recetas/the-title-of-my-recipe" instead of "mywebsitename.com/post/the-title-of-my-recipe"
So, I've change class.SimpleBlog.php this way:
Code: Select all
global $Wcms;
class SimpleBlog {
public $slug = 'recetas';
private $Wcms;
private $db;
private $dbPath;
private $dateFormat = 'd F Y';
private $path = [''];
private $active = false;
public function __construct($load) {
global $Wcms;
$this->dbPath = $Wcms->dataPath . '/simpleblog.json';
if ($load) {
$this->Wcms =&$Wcms;
}
}Code: Select all
{
"title": "Recetas",
"posts": {
"hello-world": {
"title": "Hello, World!",
"description": "This blog post and the first paragraph is the short snippet.",
"keywords": "#your, #keywords #here",
"date": 1752206742,
"body": "This is the full blog post content. Here's some more example text. Consectetur adipisicing elit. Quidem nesciunt voluptas tempore vero, porro reprehenderit cum provident eum sapiente voluptate veritatis, iure libero, fugiat iste soluta repellendus aliquid impedit alias."
},
"rellenos-de-coliflor-con-huevo": {
"title": "Rellenos de Coliflor con Huevo",
"description": "This blog post and the first paragraph is the short snippet.",
"keywords": "#your, #keywords #here",
"date": 1752206782,
"body": "This is the full blog post content. Here's some more example text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem nesciunt voluptas tempore vero, porro reprehenderit cum provident eum sapiente voluptate veritatis, iure libero, fugiat iste soluta repellendus aliquid impedit alias."
}
}
}
Thank you guys!