New answers tagged

0

In your WP directory edit ( or create ) robots.txt User-agent: * Allow: /$ Disallow: / Then wait till search engine reindex your pages, or try to run it manually with google with Google Search Console


0

I found the solution: Within the https://wordpress.org/plugins/user-role-editor/ module, just check the option "Publish Posts" for the "Author" role...


0

I tried it step by step and finally succeeded. Step 1 - hello.py I tried to create the hello.py file with Atom on Windows 10 and uploaded it to a Linux server for many times. It could run with the "python3 hello.py" command, but always failed to run when using the "./hello.py" command. I had to create it on the Linux server and the "....


0

I would do it slightly different. I have a similar case but I created a custom post type with a full custom structure on the profile of that user. Using ACF, I linked the user account to the post in the custom post file. That way you have full control over how the user profile is structured and whatever fields are needed.


0

It sounds like what you want is to be able to visually manage the pages in the Wordpress admin UI, so categories or custom post types won't help with that I guess? I did a quick search and found a plugin called Nested Pages which looks like it lets you create the visual structure you want in the WP Admin UI for pages, however I don't know if it would do ...


0

The easiest way is to add categories to pages. You can use a plugin for that: https://wordpress.org/plugins/add-category-to-pages/ Or if u are using a child theme, insert this code in functions.php in your child theme directory: function myplugin_settings() { // Add tag metabox to page register_taxonomy_for_object_type('post_tag', 'page'); // ...


0

? means the start of the variables that are accessable via PHP on the page called. The page https://www.testsite.com/ will be called, and booking variable will be accessible globally throughout the PHP script. In this case, the homepage script will be run. The $_GET['booking'] index will be set (to NULL), and will (usually) be accessible also at $_REQUEST[...


0

The PAGEID is available in $item->object_id, if $item->object is page. $item->object contains the type of the menu item. Possible values are page,post,category,... $item->object_id contains the ID for the object. I found out this by var_dump($item) on WordPress 5.4.2.


1

I initially thought you're using the code in the question on a Page (a post of the type page), but if you are actually using that code on an archive-based page (e.g. the home page, a category page, etc.), then the 404 error is normal. You can't paginate secondary/custom query on archive-based pages. Well, not when using the default paged query string in the ...


Top 50 recent answers are included