I have a question: I use an automated script to embed YouTube videos and convert them to custom post types including title, description and tags.I want to target certain keywords on the custom post type content that might not necessarily included in the tags. Is there a conditional I could use to target keywords from the custom post type content?
]]>Im not sure if this is possible….
Im looking for a plugin or a solution.
A client of mine has a Very large site with hundreds of pages and news posts , if not even thousands, its in a completly different CMS.(Custom Built CMS)
My client is unhappy with his webdeveloper and hosting service, so he asked me if I could create his site in wordpress and copy all the content from his site.
Im looking for a plugin or something that can get all his content from the old site and create pages and posts from that in wordpress.
Is this possible , or does anyone have a trick to this ?
]]>I would like to get the content of a post, given the ID. I tried this but it’s not working:
get_the_content(2);
what should I do?
]]>I am using the code below and could someone please help tweak it so it does what I want.
echo ‘<h3>’ . get_the_title() . ‘</h3>’;
echo ‘<p class=”pad10″>’ . wp_trim_words( the_content(), 150 ) . ‘</p>’;
echo ‘<p class=”farmer-more” style=”display:inline”>ID) . ‘”>’ . ‘Read More »‘ . ‘</p>’;
Thank you.
]]>E.g. my post content structure looks like this:
https://google.com/or-some-other-random-link
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus quam at est lobortis, id euismod augue venenatis. Fusce quam nisl, aliquam vitae porta vel, dapibus ut augue. Etiam ultricies sem sed lacinia adipiscing. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
I’m not very well travelled in PHP, so I’m a bit at a loss. Should I do this with a loop of some sort? One that will end when it meets the
code? Or is there a better way?
I’m optimizing my theme for SEO. In the “meta description” of the single, I want to put only the text before the label “more”. This is possible?
From already thank you very much.
]]>I have a template I am using called General Content, which will be used for all other pages except for the home page.
I am trying to pull the content of the pages into this template of that specific page. Here’s what I have tried.
<div class="layout">
<?php
$page_id = 26;
$page_data = get_page( $page_id );
echo '<h3>'. $page_data->post_title .'</h3>';
echo apply_filters('the_content', $page_data->post_content);
?>
</div>
This works based on the example from the codex but what I would like is is to set a the page_id to the current page
Something like this:
$page_id = $page->ID;
Many thanks
]]>