jmuller777
Forum Replies Created
-
I copied all the code from the tutorial and placed it inside my custom post type template replacing the pod name and the custom field name, as follows:
<?php //get Pods object for current post $pod = pods( 'livro', get_the_id() ); //get the value for the relationship field $related = $pod->field( 'autor_do_livro' ); //loop through related field, creating links to their own pages //only if there is anything to loop through if ( ! empty( $related ) ) { foreach ( $related as $rel ) { //get id for related post and put in ID //for advanced content types use $id = $rel[ 'id' ]; $id = $rel[ 'ID' ]; //show the related post name as link echo '<a href="'.get_permalink($id).'">'.get_the_title( $id ).'</a>'; //get the value for some_field in related post and echo it $someField = get_post_meta( $id, 'imagem_do_livro', true ); echo $someField; } //end of foreach } //endif ! empty ( $related ) genesis(); ?>
“livro” is my custom post type created with pods plugins and “autor_do_livro” is the Relationship Field related to the author custom post type.
Strangely the links i get are from my contact page and the actual page with its title… you can see it the top of this page: https://fuvestibular.com.br/livro/sentimento-mundo/
they are at showing at the top of the page because i am not hooking the code anywhere since i am trying to use the raw code from the example to see how i can make it work.
Any thought?
Thanks, Josh
I’ll try a little more.
A guess the genesis hook is not the problem, it is very flexible and i did a var_dump which gave me the following results:
array(23) { ["ID"]=> string(4) "3194" ["post_author"]=> string(1) "1" ["post_date"]=> string(19) "2014-06-09 10:02:49" ["post_date_gmt"]=> string(19) "2014-06-09 13:02:49" ["post_content"]=> string(14) "Escritor Teste" ["post_title"]=> string(14) "Escritor Teste" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(14) "escritor-teste" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2014-06-09 13:03:48" ["post_modified_gmt"]=> string(19) "2014-06-09 16:03:48" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> string(1) "0" ["guid"]=> string(58) "https://fuvestibular.com.br/?post_type=escritor&p=3194" ["menu_order"]=> string(1) "0" ["post_type"]=> string(8) "escritor" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" }
Thanks a lot, the issue was fully solved!
Nobody? =(
Forum: Plugins
In reply to: [Yoast SEO] Enable rel="next" on home page using genesisresolved
Forum: Plugins
In reply to: [Yoast SEO] Enable rel="next" on home page using genesisThank you! =)
Forum: Plugins
In reply to: [Yoast SEO] Enable rel="next" on home page using genesisI have a few, but it is not an issue and i dont think a link is necessary simple because theres nothing wrong with the plugin.
I use genesis and by default the elements rel=”next” and rel=”prev” is disabled on home page, the navigation links 1,2,3…50 gets no rel=”next” and rel=”prev”.
The class-frontend.php? has this function:
public function adjacent_rel_links() { // Don't do this for Genesis, as the way Genesis handles homepage functionality is different and causes issues sometimes. if ( is_home() && function_exists( 'genesis' ) && apply_filters( 'wpseo_genesis_force_adjacent_rel_home', false ) === false ) return;
But the plugin has a filter, which is: wpseo_genesis_force_adjacent_rel_home that may be used to enable the markup also in the homepage.
Added wpseo_genesis_force_adjacent_rel_home filter to allow forcing of rel=next / rel=prev links on the homepage pagination for Genesis users, they’re off by default.
I just would lie to know how to make it work.
I could just comment that line out of the class-frontend.php? but every time i update the plugin i would need to do again, so the use of the filter should be a best use.
Anyone can please help me out on this?
Forum: Plugins
In reply to: [Yoast SEO] Enable rel="next" on home page using genesis=(
Forum: Plugins
In reply to: [Yoast SEO] Enable rel="next" on home page using genesisno one? =}
Forum: Fixing WordPress
In reply to: Dynamic widget links listThanks, mbeasei!
I Thought the same. But i imagined that there could be a cleaver way. I saw on Yoast’s blog that on his essential articles there is one right sidebar that shows al the others except the one you are in.
And i’d like to replicate something like that for a custom menu.
I appreciate your help, thanks again!
This is a common error due to the impossibility to get access to the facebook application. This may occur for a variety of reasons, the easiest way to get rid of it is to recreate a new app.
So, Give it a try if you have a similar issue with your seo facebook comments.
Yes, mdafer.
In my case it was just the facebook app. This problem is related with your application, just sig in at https://developers.facebook.com/apps and create a new app then use the required data provided by the app into your configurations on SEO Comments plugin.
Hope it gets rid of your problem as well.