albertodg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: clone twenty fourteen default auto menu to other themesThanks Andrew and Steve.
In twenty fourteen, by default, there is no menu declared (in the menu page) but the top menu is visible an have this feature active.
I would like to reproduce all this funcionality, that is, having a menu active by default with this feature on.
On the other hand, I tried time ago to use a custom menu in twenty sixteen, but the order of pages was not upated (if I changed it) and subpages where not added nor updated, if I remember well.
I tried to add the navigation code form 2014 header.php to the 2017 header.php, right now, and nothing happens. no menu visible. If I activate 2014, the menu is there, reflecting the pages.
Thanks again.
Alberto
Don’t know if it helps, but this error is reported in the browser console of firefox, jus after the scan process fails.
TypeError: data is null admin.php:769:3
Duplicator.Pack.LoadScanData() admin.php:769
Duplicator.Pack.Scan/<.success() admin.php:719
m.Callbacks/j() load-scripts.php:2
m.Callbacks/k.fireWith() load-scripts.php:2
x() load-scripts.php:5
.send/b() load-scripts.php:5Restoring plugins doesn’t make any difference.
More info on the problem.
I have found the json scan documents in the tmp folder.In the problematic install, they are all empty. In the other cases are full of data.
Forum: Plugins
In reply to: [WP Hide Category] Plugin modification to make it workHi dpplopez2!
Does this plugin really hide anything? I can see the posts of a hidden category without any problem.
Forum: Plugins
In reply to: [Wiki] Wierd Bug affects Wiki menu item in AppearanceOk, solved. It wasn’t selected, but I didn’t uncheck this at any moment as far as I know. Anyway, it is solved now. Thanks!
Forum: Hacks
In reply to: How to, ultra simple plain text edit for single page, single user.Please, forget it! A couple of typos in the $pgid, $pagid var.
Everything works!
Forum: Hacks
In reply to: How to, ultra simple plain text edit for single page, single user.I don′t understand why wp_update_post() in this code creates a new instance of a page, instead of updating the page indicated.
The code is a page template (bare bones to test the behavior or of the function).
Find the page id and change it in the template.
Set the test page to use this template and open the page. Then go back to the admin pages in and you will find a new instance of the test page, not this one updated.
What is wrong?
<?php /* Template Name: test_wp_update_post */ $pgid = 14; // substitute with a real page id // Update post $edpagid $my_post = array(); $my_post['ID'] = $pagid; $my_post['post_content'] = "any other text"; // Update the post into the database wp_update_post( $my_post ); ?>
Forum: Hacks
In reply to: How to, ultra simple plain text edit for single page, single user.Thanks again, bcworkz!
A very detailed advice! I was exploring wp_update_post() in the codex, but your indications are very helpful and do exactly what I had in mind. I’ll try to put all of this to work!
Forum: Hacks
In reply to: How to, ultra simple plain text edit for single page, single user.Thanks bcworkz,
This is what I had in mind. I tryed to follow the code to undertand how the admin page edit page works, with the idea of replicating it in a minimalistic form, as you decribed, but I get lost in the complexity of wp.
I couldn’t find the function that retreives the page contents to the edit form, nor the funtion to save the changes.
Other problem is how to call the same page with two different page templates, one for general use and the other for editing. There are some plugins for switching templates or themes for especial users, but this is another level of complexity.
A brute force approach could be to use a second wp installation working on the same database, but I don’t like the idea very much.
At this time, I can get the page contents, as it is stored in the database, without any wp filtering, inside a textare. Now I need to save the changes, but I don’t know how to doti, and better, how to bypass the user identification of wp. I need this operation extremely simple. A link sent to the user should make it all, without login, usernames or passwords.
Thanks again.
Forum: Hacks
In reply to: How to, ultra simple plain text edit for single page, single user.Thanks bjohnson2,
I’m trying to find or make something even simpler. I want to force the use of just plain text, without any formatting. Also, what I need is a single page, single user approach. It is for CMS like use of WP.
I’m thinking in the possibility of going directly to the database using php-sql scripts completely outside of WP. Some code would be helpful. I’m not a professional programmer.
Thnks again.