Wordpress custom posts page coming blank - wordpress

I am new to wordpress
I created a theme and created new static page as home page
Now wanted to add blog page and for this I created another page, named it as blog and then marked it as "posts page" in settings >> reading
If I don't do this then I can see header and footer of the page but if I do the above then it shows blank page without anything
Why it shows completely blank page?
How can I relate posts with it?
On doing
define('WP_DEBUG', true);
I get errors like below
Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\project\wp-content\plugins\exec-php\exec-php.php on line 22
And after removing these errors, still its blank page
Should I use any other plugin?
All website is complete just blog page needs to be created

You can try to change your name from blog to other name such as article, blogs, journal... which related to the intention of your site because there's probably a conflict happen in naming convention of Wordpress or your theme here.

Related

Cannot create Elementor Posts page in Wordpress although I have selected in Reading page

I want to use my Posts page with Elementor modules.
I have done my Homepage like that
but cannot do the same with Posts page.
I have created an empty page,
added some modules.
And selected this page as Posts page in Reading page.
But when I click a page on my website,
my Elementor Posts page is not seen,
the default Wordpress page is seen.
Update :
I'm using Neve theme on Wordpress v5.8
My website address is Tubefavorites.com
My homepage with Elementor and posts page with default Wordpress has different fonts
and my homepage and posts page's components are in different order.
(In homepage its Tags, Categories, ...
In my posts page its Tags, Last Posts, ...
I'm working online in browser (its not local).
There is no error on Chrome Console.
Update end.
Currently I'm trying this in Turkish pages.
I will make the English Elementor page after I fix this.
How can I fix this?
Thanks
Do you have Elementor enabled for post?
Thus, if I understood correctly, you have created a page post and want to add it as homepage. You should go to settings - reading and select via dropdown the page you have created! Then, you will see your page as homepage and not the default one
There is also an explanation in support forum, that someone has the same problem. Please read below:
"Looks like you’re trying to edit your Posts page that has been assigned in your WordPress Reading settings (Settings > Reading). If this is the case, you may not be able to edit the assigned Posts page directly with Elementor (Basic version).
You can try deselecting the page (in the “Posts Page” box within your Reading settings) then try editing this page with Elementor"
link to the source: https://wordpress.org/support/topic/cannot-load-posts-page-with-elementor/
Thus, disable your page through Settings - Reading, edit/modify (whatever you want) your Post page. After that, you could add your page blog posts URL to the meny item (or use this URL to wherever is nessecary)
EDITED
What plugin are you using for the translations?
I saw your homepage playing correct, right? Thus, you have selected your custom page correctly, through the Settings - Reading.
Now, if you want to see the same results in Turkish, you need to translate your home page too! So, add the translation in turkish language too, or duplicate the english version for turkish one and it will play!
UPDATED
I think there is an issue with the blog page (and single post template, as I am reading in WP forum for this theme). Try to check inside Appearence -> Customize, if there is any options there, thus could change the blog template. Somehow the theme overwrites your options. Furthermore, take a look at the blog theme's doc here:
https://docs.themeisle.com/article/1306-neve-blog-archive-options
I have learned that, I have to use Templates page, in Elementor Pro.
I didn't have been selected it.
Thanks to Hakkı Uçar for this
and for installing and for helping.

How can I hard coded comments area to be shown in particular pages in wordpress?

In my sites I use static page as a front page, and I did some other static pages to show some special static content (and embedded object) but this page sin particular I want to have the comment area shows.
My question is: how to enable comments -preferred hard code- in particular pages? at least having the same category?
I am using wordpress 4.1 and Avada Theme.
Well you can disable the comments on over all website by going to settings discussion and then uncheck the box that says, allow people to comment on new articles. This will remove all the comments on new pages and posts (starting from now). Now when you create a new page/post click on the button on the top that says "screen options". Check the box that says "discussion". Now you will have a new field in your post from where you can enable/disable the posts individually.
If you want to do it through the code, one way would be to create separate files for each page e.g page-contact.php, So when someone goes to the contact page, this file will be served, it can be a clone of page.php and just needs the comment part removed. Another way would be to goto page.php and wrap the comments code with a condition like
if(is_page('contact') || is_page('about')){
// code to show comments. Comments will be shown on contact and about page
}

Wordpress Tags Error/Issue

I am using wordpress - and there is a way to publish pages and posts.
I am creating Posts and for that you can add tags (which just give you more keywords to rank for it shows up at the bottom of the posts - wordpress creates pages with these tags and it ranks for the tags in the search engines)
I created all these links inside the posts - and now after checking the
links they are fine on the main post page but for all the tags which come with that posts - the actual links get screwed up by wordpress bc they add a /tag/ before
the link.
This is the URL which gets created thats comes with the posts.
Example :-http://www.sitename.com/tag/tagname/
Please help
Verify if you have in the used theme the tag.php file, if not, then use one, for reference check the one from "Twentyeleven" WordPress template. (http://codex.wordpress.org/Tag_Templates)
In your dashboard, Settings > Permalinks, set to "Default", then save, then check "Post name" and save it again.
Good luck! :)

Why does my blog page only show one post?

I didn't think I would encounter this kind of problem in creating a static front page because this seems to be a very trivial customization of wordpress. I am using Thematic as my parent theme. I created a home.php template and pasted the code from the parent's page template into it. I also created two new blank pages named Home and Blog. I set home.php as the template for page Home. Then I went to Settings->Reading and set my front page to a static page and selected page Home. I also set posts page to page Blog. Now when go to my Blog page, I only see a single post?
What is set for "Blog pages show at most" in Settings>>Reading? Do you have more than one post?

Post pages in Wordpress 2.9

I'm trying to use a posts page in Wordpress. For the uninitiated, this is a page (other than the home page) which features all your blog posts. You essentially turn on the static home page and point Wordpress at a custom index. Then you tell Wordpress to use another custom template as your "posts page"; thereafter, any post you make will wind up there.
My custom template for the 'Blog' page shows up as expected until I define it as the posts page. When I do, the template reverts to my custom index and I get no posts. When I undefine it as the posts page, it goes back to my template. What am I missing? I'm new to using this method, as it used to be done with a plugin prior to WP 2.9
So, I figured out the solution and wanted to share. Thanks for all your input, everyone.
The problem was with the name I chose for the template. I had called it "blog.php", which works fine when creating an ordinary page template. But when using a page as a posts page, Wordpress has some specific setup rules. The pertinent section of documentation, which I scoured the entire internet for using hours of my life I'll never get back, is hidden here:
Also, any Template assigned the Page will be ignored and the theme's index.php (or home.php if it exists) will control the display of the posts. (from here).
So, I named my template "home.php", since I wasn't using a home.php in this particular install, and I was off to the races. Anyway, thanks for the answers!
BTW, I think this may have been what Richard M was getting at.
Your problem might be in creating "templates" and the single post (single.php) You can create a template for any of your pages by putting this in the top of your page (after the first < ? php:
/**Template Name: ****templatenamehere**** #package WordPress * #subpackage Default_Theme */
...rest of code
This allows you to create a page called "posts" which references your new template. This way you can create a new template and then call it through a page. If this is confusing or you have tried this let me know and I will try to give you more details if you need. Thanks

Resources