Posts by Leo Baiano • 131 points
6 posts
-
1
votes2
answers715
viewsA: Wordpress menu with pages and category option
The best way to work with menus in Wordpress themes is by using the native function, in time it is no longer necessary to use type functions wp_list_categories() for the menus, so come on. First you…
-
2
votes2
answers888
viewsA: Free access in Wordpress directory to print images? . htaccess
This is not a Wordpress issue, as the colleague said above the WP does not block direct access to this type of file. Do these images appear on your website? I had similar problem when the images did…
-
1
votes1
answer4196
viewsA: A menu for each page
It is possible, but in order to help first I need to know what this side menu is and how it is being called. How is the side of your site called? Usually there is a file called sidebar.php in the…
-
2
votes2
answers403
viewsA: Doubt about Custom Post Type
I think you misunderstood the concept of Custom Post Type - CPT. A CPT is a custom type of post and although it can have its own categories¹ a CPT is not a category and in its default form you will…
-
2
votes3
answers8261
viewsA: How to recover the ID of the last record inserted in the bank?
If you are using PDO in Laravel the correct form is: $id = DB::connection('mysql')->pdo->lastInsertId(); If the database is not Mysql change this in the above code.…
-
2
votes4
answers3355
viewsA: PHP login with permission levels
I won’t suggest OO because it seems that it is already forwarded, so following the current structure, at least creates a function to do this check on the protected pages and calls this function,…