$url = get_post_meta( get_the_ID(), 'test', true );
echo wpws_get_content($url, ".test", array('output' => 'text'));
Above code is usable in normal single.php template, but not usable in single-test.php.
wpws_get_content not recognizing $url in the custom post type template.
How to fix this issue?
https://www.ads-software.com/plugins/wp-web-scrapper/
]]>Somehow the person who built this site a couple of years ago made it so that the blog page is forced to have a sidebar (even when I apply the “default” template) and all the other pages can be full width (when using the “default” template). I have searched through all the files in the child theme and the parent theme and cannot for the life of me figure out where she is doing this.
The client would like the blog page to be full-width. I have created a blog page template: page-blog.php and tried to make it full-width in the stylesheet:
‘.template-page_blog #content {margin: 3% 7.6% 0 7.6%;
width: 100%;
}’
but I must have done it wrong because there is no change, even though the “blog”template does show up in the page.
Any advice?
]]>Thanks (great plugin!)
https://www.ads-software.com/extend/plugins/social-networks-auto-poster-facebook-twitter-g/
]]>Is it possible to load the content from a certain post into a div without the header and footer? IE, create a new single.php layout without the header and footer and ONLY call it when the visitor is on a specific page? Or let me put it this way, is it possible to load a single post without the header and footer in one specific template layout, and use the default single.php layout on the rest of the website?
My problem in depth: I have created a specific theme layout for one part of my website. On that page I have two divs. The left div contains a list of posts from one specific category and the other div loads the content from the left div when the links are clicked.
Now, my problem is that when you click on the links in the left div, the ENTIRE single post is loaded into the right div, including the header and footer. How can I create a template for those single posts so the header and footer won’t show?
I can’t remove the header and footer in single.php because that would drop the header and footer from the single post layout if the single posts links were clicked from other parts of the website.
Any help is appreciated because I’m really getting frustrated.
]]>So I created a template specifically for that page. In the template I use get_header() to grab the top of my site. Then I use the query_posts function and the rewind_posts function to create each “block”. So far so good, all of this works as intended.
However at the bottom of the page I want to do something special if the user is looking at that any page (not post). The bottom is built using the get_footer() function. In my footer template I have an if statement that checks to see if we are looking at a page with the is_page function.
The is_page function seems to break when I have used the query_posts function in the page template. If I just use a regular Loop without any query_post function the footer correctly identifies the page as a page via the is_page function and it does what I want.
However as soon as I use the query_post function on a page, the is_page function no longer returns true. Is there something I’m missing? After I enter The Loop for the last time in the page template I’ve tried calling rewind_posts again thinking that perhaps something needed to be reset, however is_page still evaluates to false when viewing that page.
]]>I need the extra functionality that the link-library plugin provides, but after installing it it seems to break certain admin features in WP e.g:
As I’ve mentioned, the features still work it is the redirection that doesn’t – the problem is, I’m setting this up for someone else who would get completely thrown when it didn’t do what was expected.
Just to clarify – it all goes back to normal if I deactivate the plugin, so it’s definately related to it.
]]>