Questions tagged [custom-content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
2answers
10k views

Adding content to archive and taxonomy pages on custom post types?

I have a custom post type named "Products" and a taxonomy called "Usage". On my "Products" landing page I'd like to have custom content that can be edited via WYSIWYG by the client. Same goes for the ...
5
votes
4answers
503 views

Add Content to Page without shortcodes

The site I'm working on has a couple of pages that needs to be filled with different content elements like text image combinations, sliders, lists of content, etc. The client would need to re-order ...
4
votes
3answers
19k views

Inserting dynamic content into a page

I see this subject comes up regularly but have not seen an answer to my specific requirement yet. I'm trying to use a WordPress page as a template and insert database-sourced content (about 20 or so ...
2
votes
3answers
4k views

Pre-fill fields with content from outside when creating a new post

I'd like to find a way to fill some of the fields from the /wp-admin/post-new.php page from an external source. It works for the title: loading /wp-admin/post-new.php?post_title=title1 fills the ...
2
votes
2answers
802 views

Including an External File in a Post (and Using Processed Paths)

I have a post that includes a relatively large table that gets updated frequently. Instead of using the (slower) web interface to update the post each time, I installed one of the “run PHP” plugins ...
1
vote
2answers
92 views

Is it acceptable to build functionality into a theme built for a client? [closed]

I know it's now the common wisdom to not build functionality into themes, as advised by WordPress, Envato, and others. This includes the likes of content types, taxonomies, sliders, shortcodes etc, to ...
1
vote
2answers
8k views

How to create a list of items with fields in WordPress?

I'm new to WordPress and hoping some of you experts can help me figure out the best way to attack what seems like such a simple problem. I need to have two lists of items that the user can add to, ...
1
vote
1answer
258 views

Create default_content layout template based on post id

Background What I am attempting to do is create a custom post layout template for a specific post (or even page) that the WordPress user can simply insert content using the WYSIWYG editor without ...
1
vote
1answer
141 views

Custom post.php

Is there any way to define a post.php for a Custom Content Type? I am trying to remove the Permalink, the Slug and the Preview Changes Button from the edit/creation page of an item in my custom ...
1
vote
1answer
1k views

How to add text to comment form #content textarea?

I have a plugin that does validation on user submitted comments. When validation fails, I want to redirect them back to the comment form, and have their comment still appear in the comment box, so ...
1
vote
1answer
32 views

Theme Development: Starter Content after hook

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: https://make.wordpress.org/core/2016/11/30/starter-...
1
vote
0answers
26 views

How to create a seperate commenting system?

I'm planning to add a question and answers (custom post type) to my website. I already use my default WP comment system on my posts. Now I want a custom content type for my question post type to be ...
1
vote
1answer
128 views

Load dynamic content in a wordpress website

is there a way to load a page content ( or an element ) from a page into another one on a same Wordpress website? For example, if I had a page with some links would it be possible to make a specific ...
0
votes
1answer
235 views

Where is the right place to store custom images?

I'm converting my old web project to WP and there are tons of book covers that aren't to be uploaded/managed by WP but by my own functions. Where is the right place to store such a kind of custom ...
0
votes
2answers
56 views

Custon Content within WordPress Loop

I have created a WP loop to display Services from 'Services' Custom Post Type: Here is the code: <?php $services_loop = new WP_Query( array( 'post_type' => 'service', 'posts_per_page' =&...
0
votes
3answers
797 views

writing posts in indian regional language (Punjabi)

I am trying to create a post in Punjabi Language . But when i try to paste punjabi text into the editor , the language automatically gets converted to English. I tried using the Google Translator ...
0
votes
2answers
2k views

wordpress content .php file in an iframe's src in a wordpress post

I would like to insert an iframe with WordPress content inside a post. I explain myself. I have two things: a post and a presentation. In the the_content() WordPress filter, I add my iframe to the $...
0
votes
1answer
1k views

Multiple Websites that share some content types and not others

I need to know if Wordpress can handle multiple sites. And between these sites, it should share some content types while restricting others. If the answer is yes, then I need to know: does it do ...
0
votes
1answer
607 views

How to add a second content section when using certain page template

Is it possible to enable a second content area in the edit screen if a certain template is chosen? I have seen plugins like the second section plugin but that enables it for all pages I would like ...
0
votes
1answer
121 views

Dynamic redirect

Using PODS, I created a content type "sorteio" (lottery). I made a routine in functions.php to create the title automatically and, after creating the first record, url looks like this: http://...
0
votes
1answer
29 views

How to create new content type and flushes rewrite rules without visiting the permalinks page?

I could not found a realiable way to create new content type and allow the permalink structure works. Every place where someone wants to let the permalink structure works to a new content type in ...
0
votes
3answers
41 views

Reusable and site-wide content that can be used in a theme

Goal: To define content (phone number, address etc) in the admin area that can be used (called upon) in a theme. Context: I am making a theme for a multi-site where every site will look the same, but ...
0
votes
1answer
692 views

Custom post type name and assigning custom taxonomy

I've made mistake creating custom post type. I've put: register_post_type( 'Post Name', $args ); instead of register_post_type( 'post_name', $args ); Now I need to assign new custom taxonomy to ...
0
votes
1answer
86 views

Page for logged in user to Edit/Delete their own content?

Im new to WordPress, I have been working with Drupal for about 6 years and recently switched over to WP, couldnt be happier :) I have a question that I need some assistance with and was hoping that ...
0
votes
1answer
87 views

How to create a Re-Usable content snippet that I can Pass a Value to?

Here's the scenario... For a local site I have different city specific pages. The first paragraph of those pages will be unique and related to the specific city. But the content after that will be ...
0
votes
1answer
13 views

Is there a way to show different source feeds on individual pages?

As a freelance writer, I have a few outlets I write for routinely plus additional sites, and while I used to post my content manually, due to SEO concerns and logistical issues, I have been looking to ...
0
votes
1answer
70 views

How can I show some standard html code across any theme I install?

I have some custom code that sits inside <head></head>. When I install a new WordPress theme I have to edit the header.php script each time. Is there a way to always include my custom ...
0
votes
1answer
2k views

Help with Wordpress custom url rewriting?

I have 3 problems. First,I would like something like this to do : www.example.com/myblog => myblog.example.com myblog is template page. and then when open one post from that page(post are custom ...
0
votes
0answers
11 views

How would you handle dynamic content in a landing page theme in Wordpress?

I'm developing a landing page theme for a client who wants to reuse this for multiple campaigns. I've never developed a Wordpress theme before so If anyone has some tips that would be really helpful. ...
0
votes
1answer
53 views

Creating content using wp-admin pages

This may seem like a noob question but I think I have entered the wordpress world from the "wrong side". I have made an custom template where I added for example home.php, about.php and the pages I ...
0
votes
1answer
53 views

What's the best way to manage sections on a page?

I bought some long time ago an HTML theme which was an one-page template, however I'm changing it to be a multiple page, for SEO reasons. Then, my homepage has a lot of sections, containing slideshow, ...
0
votes
1answer
64 views

ound this in Where to edit Custom Content fields to optional if there is no plug in?

I am having 3 custom contents on my front page. Each of them must have an image. However, I want some of them not to have the image, I want to have that field optional. Any idea where may I change it?...
0
votes
0answers
65 views

What is the best way to create very custom campaign pages?

Currently I am working with company that has very specific campaigns and each one should have its own very custom presentation page. Since its very different from usual WordPress theme design (...
0
votes
2answers
1k views

Own code on index.php wordpress theme file, help with the rewrite rules

Hey there, I am sooo frustrated, asked and asked and can't seem to get an answer. Pleaseeeee help, I'll be very very clean whith my problem. I'll give hundreds of bears to the one who can help:) I ...
-1
votes
3answers
5k views

displaying content of custom post type

I have a following code for the custom post type, and I want to display the content of it inside the loop. $args = array( 'post_type' => 'gallery', 'posts_per_page' ...
-1
votes
1answer
312 views

Get the excerpt of post_content

Hi guys can you explain me how to get a excerpt length of 15 for the post_content in my code: <?php $args = array( 'numberposts' => '2', 'tax_query' => array( array( '...