-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socials feed #33
base: develop
Are you sure you want to change the base?
Socials feed #33
Conversation
Why a lot of files shown as changed from 0644 to 0755? Did you check this PR by yourself? |
framework/Theme.php
Outdated
@@ -10,8 +10,10 @@ | |||
use JustCoded\WP\Framework\Supports\Just_Tinymce; | |||
use JustCoded\WP\Framework\Web\Template_Hierarchy; | |||
use JustCoded\WP\Framework\Supports\Just_Load_More; | |||
use JustCoded\WP\Framework\Supports\Socials_Feed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is not used here. please remove
framework/Supports/Socials_Feed.php
Outdated
} | ||
|
||
protected function is_exists( $post_title ) { | ||
return get_page_by_title( wp_strip_all_tags( $post_title ), OBJECT, self::POST_TYPE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to search by slug, not by name
framework/Supports/Socials_Feed.php
Outdated
'post_date' => date( 'Y-m-d H:i:s', $timestamp ), | ||
'post_name' => 'twitter_post_' . $twitter_post->id, | ||
'post_type' => self::POST_TYPE, | ||
'post_status' => 'draft', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it's "draft" (same for all socials)?
'public' => true, | ||
'hierarchical' => true, | ||
'taxonomies' => array(), | ||
) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be hidden from admin interface. Don't know why you need "hierarchical" here?
And I think it will be useful to make visible in admin or not - a class option, so it can be configured easily in a theme
'name' => 'Socials Category', | ||
), | ||
'public' => true, | ||
'hierarchical' => false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manageable UI should not be visible
No description provided.