Pull the content out of a page

While inside a query loop, this function will output the current posts title: the_title(); This function will output the content: the_content(); What I suspect has happened however is that you are instead calling get_template_part( ‘content’, ‘page’ ); and expecting it to output the content for the page, when what it’s actually doing is checking if … Read more

How can I Add a variable PHP in the Menu Nav

You should never need a plugin to insert raw PHP code somewhere. There are always side effects you cannot see or fix easily. Filter wp_nav_menu_objects instead, and add the parameter here to the URLs. if ( ! empty ( $_GET[‘partenaire’] ) ) add_filter( ‘wp_nav_menu_objects’, ‘wpse_82194_add_param’ ); /** * Add a parameter to item URLs. * … Read more

Using the echo command adds unwanted br tags to source

If this is plugin code there is NO REASON the theme would make a difference. My guess is it’s a server issue (outputting of /n) or a WordPress function that changes the /n into <br> I would check wpautop() as I find that sometimes it’s this functions fault. See this post on the WordPress.org forum … Read more

Edit Yoast SEO breadcrumbs output [closed]

They are all null. You haven’t set any of those variables. Here is your function. function ss_breadcrumb_output() { return apply_filters( ‘ss_breadcrumb_output’, ‘<‘ . $wrapper . $id . $class . ‘ xmlns:v=”http://rdf.data-vocabulary.org/#”>’ . $output . ‘</’ . $wrapper . ‘>’ ); } All of the variables in that function are isolated to that function. Variables set … Read more