barrykooij / post-connector-core Goto Github PK
View Code? Open in Web Editor NEWPost Connector Core
Post Connector Core
Backtrace from warning 'Trying to get property of non-object' at /vagrant/post-connector/wp-includes/post.php 2187:
/vagrant/post-connector/wp-includes/post.php 5483 calling _count_posts_cache_key()
calling _transition_post_status()
/vagrant/post-connector/wp-includes/plugin.php 470 calling call_user_func_array()
/vagrant/post-connector/wp-includes/post.php 3664 calling do_action()
/vagrant/post-connector/wp-includes/post.php 3199 calling wp_transition_post_status()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-connection-manager-core.php 34 calling wp_insert_post()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-connection-manager-core.php 271 calling add()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-admin-menu.php 117 calling save()
calling handle_post()
/vagrant/post-connector/wp-includes/plugin.php 470 calling call_user_func_array()
/vagrant/post-connector/wp-admin/admin.php 144 calling do_action()
Backtrace from warning 'Trying to get property of non-object' at /vagrant/post-connector/wp-includes/post.php 2187:
/vagrant/post-connector/wp-includes/post.php 5483 calling _count_posts_cache_key()
calling _transition_post_status()
/vagrant/post-connector/wp-includes/plugin.php 470 calling call_user_func_array()
/vagrant/post-connector/wp-includes/post.php 3664 calling do_action()
/vagrant/post-connector/wp-includes/post.php 3199 calling wp_transition_post_status()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-connection-manager-core.php 34 calling wp_insert_post()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-connection-manager-core.php 271 calling add()
/vagrant/post-connector/wp-content/plugins/post-connector-premium/core/classes/class-admin-menu.php 117 calling save()
calling handle_post()
/vagrant/post-connector/wp-includes/plugin.php 470 calling call_user_func_array()
/vagrant/post-connector/wp-admin/admin.php 144 calling do_action()
Backtrace from warning 'Cannot modify header information - headers already sent' at /vagrant/post-connector/wp-includes/pluggable.php 1121
Original report:
If a particular post/page has been set to 'Private' it still appears in any location where it has been linked. Should it not also be hidden?
Example: I want to use this plugin for displaying companies and cars, so I make a connection between companies post type and cars post type. I set the title for "Cars" and I enable automatic display for both parent and child posts.
In this case the list of cars are displayed on the company post with the title "Cars", which is perfect. But when I go to a car post I see the link backward to the company with the title "Cars" again, which makes no sense here.
It would be better to have 2 titles, 1 for the parent post and 1 for the child posts.
Example case: Only show top level posts of a post type set in connection.
In admin https://github.com/barrykooij/post-connector-core/blob/master/classes/class-admin-menu.php#L181 and https://github.com/barrykooij/post-connector-core/blob/master/classes/class-admin-menu.php#L244 you could add localization to the string Post Connector:
. I'm suggesting with :
to differentiate from other strings with just Post Connector
as menu label and plugin title that you might not want to localize.
You would just need to add the _e() function as<?php echo _e( 'Post Connector:', 'post-connector' ); ?>
I can pull this if you want.
Thanks.
Add filter to hide the connection title that is shown above APDC/APDP and widget
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.